A+B-4
try except 구문을 모르면 풀 수 없는 문제였다.
while True: try: a, b = map(int, input().split()) except: break print(a+b)
코딩도장을 참고하자.