l="$System.in"=~/\S+/ 14.times{n->l.any{print it.grep{1}[n]?:''}}