a=list(input().split()) for i in range(len(a)): print(a[i])
更簡潔
names = input().split()print('\n'.join(names))