파이썬 입력이 끝날때 까지 받고 종료하는 조건
import sys
lines = sys.stdin.readlines()
for line in lines:
A, B = map(int, line.split())
print(A+B)
while True:
try:
A, B = map(int, input().split())
print(A+B)
except EOFError:
break