Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
N=N-M
if =0<N:
   print(N)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
"N,M".split(",")
N=N-M
if =0<N:
   print(N)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
N=N-M
if N>0=:
   print(N)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
N=N-M
if 0<N:
   print(N)
elif 0==N:
   print(0)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
N=N-M
if 0<N:
   print(N)
elif 0=N:
   print(0)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
if N>M>:
   print(N-M)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
N=N-M
if N>0:
   print(N)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
if N>M:
   print(N-M)
else:
   print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
if N>M:
  	print(N-M)
else:
  	print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
if N>M:
    print(N-M)
else:
  	print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
M=int(input())
if N>M:
  print(N-M)
else:
  print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)

Buggy python submission (verdict: Runtime Error):
N=int(input())
if N>M:
  print(N-M)
else:
  print(-1)

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
B=0
for i in A:
    B=B+i       
N=N-B
if 0<=N:
    print(N)
else:
    print(-1)