My issue
EOFError is coming how to solve this
My code
n=int(input())
a=b=0
m=0
for i in range(0,n):
a1,b1=map(int,input().split())
a+=a1
b+=b1
l=a-b
k=bool(l<0)
if (-(2*k)+1)*l>m:
m=(-(2*k)+1)*l
p=k+1
print(p,m)
Problem Link: CodeChef: Practical coding for everyone