n,_=gets.chop,gets n,_=$_.split-[n]if$_[n]while gets $><