n=0 while 1: r=raw_input().split()*21 if r:print r[n],;n+=1