Spadework 2020. 2. 21. 09:20

* Solved 기준 브론즈2 단순 풀이

s,M = 0,0
for _ in range(10):
	m,p = map(int, input().split())
	s += p-m
	if(s>M): M=s
print(M)