문제 출처: https://www.acmicpc.net/problem/2455
Bronze 3
if __name__ == '__main__':
final = 0
max_people = 0
for _ in range(4):
minus,plus = map(int, input().split())
final -= minus;
final += plus
max_people = max(max_people,final)
print(max_people)