import re while 1:r=raw_input();print' '.join(re.findall(~-len(r)/int(r[0])*'\w',r))