while True: try: name = input() surname = input() print(name + ' ' + surname) except EOFError: break