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