몇줄인지 정해지지 않은 임의의 길이의 문자열을 받는 2가지 방법
import sys line = sys.stdin.read()
line = '' while True: try: line = input() except EOFError: break