n:0;3K.times{c:stdin.get_s(1);if(c>" ")n++;n%10<1&&c>" "||print(c);}