Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
play_day=a-(c+d)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=input().split()
c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
play_day=a-(b+c)
if play_day>=0:
    print(play_day)
else:
    print(-1)

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
play_day=a-(c+d)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
play_day=a-(c+d)
if play_day>=0:
    print(play_day)
else:
    print(-1)

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
play_day=a-(c+d)
if play_day>0:
    print(play_day)
else:
    print("-1")

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
play_day=a-(c+d)
if play_day>0:
    print(play_day)
else:
    print(-1)

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c,d=map(int,input().split())
print(a-(c+d))

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
([int(r) for r in input().split(" ")])-sum([int(r) for r in input().split(" ")])

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
A=list(range(M+1))
play_day=N-sum(A)
if play_day>0:
    print(play_day)
else:
    print(-1)

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
A=list(range(M+1))
play_day=N-sum(A)
if play_day>0:
    print(play_day)
else:
    print("-1")

Fixed submission:
a,b=map(int,input().split())
C=list(map(int,input().split()))
play_day=a-sum(C)
if play_day>=0:
    print(play_day)
else:
    print("-1")