qyliang/CodeNanoFix huggingface dataset:
Buggy code:

def main():
    n = input().split()
    if n[1] == '+':
        print(int(n[0]) + int(n[1]))
    else:
        print(int(n[0]) - int(n[1]))


if __name__ == "__main__":
    main()


Fixed code:

def main():
    n = input().split()
    if n[1] == '+':
        print(int(n[0]) + int(n[2]))
    else:
        print(int(n[0]) - int(n[2]))


if __name__ == "__main__":
    main()
Buggy code:
#ABC050.A
A,B = map(int,input().split())
op = input()
if op == '+':
    print(A+B)
else:
    print(A-B)

Fixed code:
#ABC050.A
A,op,B = input().split()
if op =='+':
    print(int(A)+int(B))
else:
    print(int(A)-int(B))
Buggy code:
a, op, b = (i for i in input().split())

if op == '+':
  print(a+b)
else:
  print(a-b)

Fixed code:
a, op, b = (i for i in input().split())

if op == '+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))
Buggy code:
#ABC050A
A, op, B = list(input().split())
if (op == '+'): print(A+B)
else: print(A-B)

Fixed code:
#ABC050A
A, op, B = list(input().split())
A = int(A)
B = int(B)

if (op == '+'): print(A+B)
else: print(A-B)
Buggy code:
a,b,c=input().split()
if b=='+':
    print(a+c)
else:
    print(a-c)

Fixed code:
a,b,c=input().split()
if b=='+':
    print(int(a)+int(c))
else:
    print(int(a)-int(c))
Buggy code:
arr = input().split()
if arr[1] == "+"
  print(int(arr[0]) + int(arr[2])) 
elif arr[1] == "-"
  print(int(arr[0]) - int(arr[2])) 

Fixed code:
arr = input().split()
if arr[1] == "+":
  print(int(arr[0]) + int(arr[2])) 
elif arr[1] == "-":
  print(int(arr[0]) - int(arr[2]))
Buggy code:
li = input().split()

if li[1] == "+":
  print(int(li[0]+li[2]))
else:
  print(int(li[0]-li[2]))
  


Fixed code:
li = input().split()
 
if li[1] == "+":
  print(int(li[0])+int(li[2]))
else:
  print(int(li[0])-int(li[2]))
Buggy code:
a,op,b = map(str, input().split())
a = int(a)
b = int(b)
if op == '+':
    result = a + b
else op == '-':
    result = a - b 
    
print("{}".format(result))


Fixed code:
a,op,b = map(str, input().split())
a = int(a)
b = int(b)
if op == '+':
    result = a + b
elif op == '-':
    result = a - b

print("{}".format(result))
Buggy code:
a=input().split()
if a[1]=='+':
  print(a[0]+a[2])
else:
  print(a[0]-a[2])

Fixed code:
a=input().split()
if a[1]=='+':
  print(int(a[0])+int(a[2]))
else:
  print(int(a[0])-int(a[2]))
Buggy code:
list=input().split()
if list[1] == "+":print(list[0]+list[2])
else:print(list[0]-list[2])

Fixed code:
list=input().split()
if list[1] == "+":print(int(list[0])+int(list[2]))
else:print(int(list[0])-int(list[2]))
Buggy code:
input = raw_input().split(" ")
output = 0;
if input[1] == "+":
    output = input[0] + input[2]
else:
    output = input[0] - input[2]

print(output)

Fixed code:
input = input().split(" ")
output = 0;
if input[1] == "+":
    output = int(input[0]) + int(input[2])
else:
    output = int(input[0]) - int(input[2])

print(output)
Buggy code:
a,o,b=map(str,input().split())
if o=='+':
    print(a+b)
else:
    print(a-b)

Fixed code:
a,o,b=map(str,input().split())
a=int(a)
b=int(b)
if o=='+':
    print(a+b)
else:
    print(a-b)
Buggy code:
equa = input().split()
if equa[1] == "+":
    print(int(equa[0]) + int(equa[1]))
else:
    print(int(equa[0]) - int(equa[1]))


Fixed code:
equa = input().split()
if equa[1] == "+":
    print(int(equa[0]) + int(equa[2]))
else:
    print(int(equa[0]) - int(equa[2]))
Buggy code:
a,b,c=input().split()
if b=="+":
  print(int(a)+int(c))
else b=="-":
  print(int(a)-int(c))


Fixed code:
a,b,c = input().split()
if b == '+':
  print(int(a)+int(c))
else:
  print(int(a)-int(c))
Buggy code:
A,op,B=input().split()
a=int(A)
b=int(B)

if op=="+":
  print(a+b)
  
elif op=="=":
  print(a-b)

Fixed code:
A,op,B=input().split()
a=int(A)
b=int(B)
 
if op == "+" :
    print(a+b)
  
elif op == "-" :
    print(a-b)
Buggy code:
a,b,c = input().split()
if b == "+":
	print(int(a)+int(b))
else:
	print(int(a)-int(b))

Fixed code:
a,b,c = input().split()
if b == "+":
	print(int(a)+int(c))
else:
	print(int(a)-int(c))
Buggy code:
a = list(input().split())
if a[1] = "+":
  print(int(a[0]) + int(a[2]))
else:
  print(int(a[0]) - int(a[2]))

Fixed code:
a = list(input().split())
if a[1] == "+":
  print(int(a[0]) + int(a[2]))
else:
  print(int(a[0]) - int(a[2]))
Buggy code:
a=input().strip().split(" ")

if(a[1]=="+"):
    print(a[0]+a[2])
else:
    print(a[0]-a[2])
    


Fixed code:
a=input().strip().split(" ")

a[0]=int(a[0])
a[2]=int(a[2])


if(a[1]=="+"):
    print(a[0]+a[2])
else:
    print(a[0]-a[2])
Buggy code:
a = input()
A = int(a[0])
o = a[1]
B = int(a[2])
if o == "+":
 print(A+B)
else:
 print(A-B)

Fixed code:
a = input().split()
A = int(a[0])
o = a[1]
B = int(a[2])
if o == "+":
 print(A+B)
else:
 print(A-B)
Buggy code:
a, x, b = input().split()
c = int(a)
d = int(b)
if x == ("+"):
  print (c + d)
elif op == ("-"):
  print (c - d)

Fixed code:
a, x, b = input().split()
c = int(a)
d = int(b)
if x == ("+"):
  print (c + d)
elif x == ("-"):
  print (c - d)
Buggy code:
a,b,c = input().split()
if b =='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed code:
a,b,c=input().split(' ')
if b=='+':
    print(int(a)+int(c))
else:
    print(int(a)-int(c))
Buggy code:
AB = list(map(str,input().split()))
if AB[1] == "+"
    print(int(AB[0])+int(AB[2]))
else:
    print(int(AB[0])-int(AB[2]))

Fixed code:
AB = list(map(str,input().split()))
if AB[1] == "+":
    print(int(AB[0])+int(AB[2]))
else:
    print(int(AB[0])-int(AB[2]))
Buggy code:
a,s,b = input(str, input.split())
if s ="+":
    print(int(a) +int(b))
else:
    print(int(a) - int(b))

Fixed code:
a,s,b = map(str, input().split())
if s == "+":
    print(int(a) + int(b))
else:
    print(int(a) - int(b))
Buggy code:
a,op,b=input().split())
if op=="+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))

Fixed code:
a,op,b=input().split()

if op=="+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))
Buggy code:
A=list(input().split())
print(A)
print(int(A[0])+int(A[2]) if A[1]=='+' else int(A[0])-int(A[2]))


Fixed code:
A=list(input().split())
print(int(A[0])+int(A[2]) if A[1]=='+' else int(A[0])-int(A[2]))
Buggy code:
s=input().split()
a=int(s[0])
op=s[1]
b=int(s[1])
if op=="+":
 print(a+b)
elif op=="=":
 print(a-b)

Fixed code:
s=input().split()
a=int(s[0])
op=s[1]
b=int(s[2])
if op=="+":
 print(a+b)
elif op=="-":
 print(a-b)
Buggy code:
A, B, C = input().split()
if B == "+":
  print(int(A) + int(B))
else:
  print(int(A) - int(B))

Fixed code:
A, B, C = input().split()
if B == "+":
  print(int(A) + int(C))
else:
  print(int(A) - int(C))
Buggy code:
a, b, c = input().split()

a = int(a)
c = int(c)

if b == "+":
  print(a + c)
elif b == "-":
  print(a - b)



Fixed code:
a, b, c = input().split()
 
a = int(a)
c = int(c)
 
if b == "+":
  print(a + c)
elif b == "-":
  print(a - c)
Buggy code:
a,op,b=input().split()
if op == "+":print(a+b)
else:print(a-b)

Fixed code:
a,op,b=input().split()
if op == "+":print(int(a)+int(b))
else:print(int(a)-int(b))
Buggy code:
a=input.split()
print(int(a[0])+int(a[1]) if a[1]="+" else int(a[0])-int(a[1]))

Fixed code:
a=input().split()
print(int(a[0])+int(a[2]) if a[1]=="+" else int(a[0])-int(a[2]))
Buggy code:
a, p, b = map(int, input().split())

if p == "+":
  print(a + b)
else:
  print(a - b)

Fixed code:
a, p, b = map(str, input().split())
a = int(a)
b = int(b)

if p == "+":
  print(a + b)
else:
  print(a - b)
Buggy code:
a,b,c=map(str,input().split())
if b=="+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed code:
a, op, b = map(str,input().split())

if op == "+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))
Buggy code:
a = input().split()
if a[1] == '+':
  print(a[0]+a[2])
else:
  print(a[0]-a[2])

Fixed code:
a = input().split()
if a[1] == '+':
  print(int(a[0])+int(a[2]))
else:
  print(int(a[0])-int(a[2]))
Buggy code:
A,op,B = [x for x in input().split()]
A = int(A)
B = int(B)
if(op = '+'):
  print(A+B)
else:
  print(A-B)

Fixed code:
A, op, B = [ x for x in input().split() ]
A = int(A)
B = int(B)

ans = 0
if op == "+":
    ans = A + B
else:
    ans = A - B

print(ans)
print()
Buggy code:
A,op,B=input.split() 
if op=="+": 
    print(int(A)+int(B)) 
else: 
    print(int(A)-int(B))

Fixed code:
A,op,B=input().split() 
if op=="+": 
    print(int(A)+int(B)) 
else: 
    print(int(A)-int(B))
Buggy code:
A,op,B=(str(x) for x in input().split())
if op=="+":
    print(int(A)+int(B))
elif op=="-":
    print(int(A)+int(B))


Fixed code:
A,op,B=(str(x) for x in input().split())
if op=="+":
    print(int(A)+int(B))
elif op=="-":
    print(int(A)-int(B))
Buggy code:
A,c,B=input().split()
if c=="+":
  print(A+B):
elif c=="-":
  print(A-B)
 

Fixed code:
A,c,B=input().split()
A=int(A)
B=int(B)
if c=="+":
  print(A+B)
elif c=="-":
  print(A-B)
Buggy code:
x,op,y = int,input().split()
x = int(x)
y = int(y)
print(x+y if op == '+' else x-y)


Fixed code:
x,op,y = input().split()
x = int(x)
y = int(y)
print(x+y if op == '+' else x-y)
Buggy code:
a,op,b = list(map(str, input().split()))
if op == "+":
  ans = int(a) + int(b)
else:
  ans == int(a) - int(b)
print(ans)

Fixed code:
a,op,b = list(map(str, input().split()))
if op == "+":
  ans = int(a) + int(b)
else:
  ans = int(a) - int(b)
print(ans)
Buggy code:
a,b,c = input().split()
a = int(a)
c = int(b)

if b == '+':
    print(a + c)
elif b == '-':
    print(a - c)
else:
    print('error')

Fixed code:
a,b,c = input().split()
a = int(a)
c = int(c)

if b == '+':
    print(a + c)
elif b == '-':
    print(a - c)
else:
    print('error')
Buggy code:
a,op,b=map(input().split())
if op=="+":
   print(int(a)+int(b))
else:
   print(int(a)-int(b))

Fixed code:
a, op, b = map(str, input().split())
a = int(a); b = int(b)

if op == "+":
    print(a+b)
else:
    print(a-b)
Buggy code:
a = list(input().split())
b = int(a[0])
c = int(a[2])
print(a[1])
if a[1] == '+':
    print(b+c)
else:
    print(b-c)

Fixed code:
a = list(input().split())
b = int(a[0])
c = int(a[2])
if a[1] == '+':
    print(b+c)
else:
    print(b-c)
Buggy code:
tmp = input().split()

if tmp[1] == '+':
  print(tmp[0]+tmp[2])
else:
  print(tmp[0]-tmp[2])

Fixed code:
tmp = input().split()

if tmp[1] == '+':
  print(int(tmp[0])+int(tmp[2]))
else:
  print(int(tmp[0])-int(tmp[2]))
Buggy code:
a,op,b = input().split()
if op == "+":
  print(a+b)
else:
  print(a-b)

Fixed code:
a,op,b = input().split()
if op == "+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))
Buggy code:
a, op, b = map(str, input().split())

a = int(a)
b = int(b)

if op == "+":
  print(a + b)
eles: 
  print(a - b)

Fixed code:
a,op,b = map(str, input().split())
if op == "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))
Buggy code:
if __name__ == "__main__":
    a,b,c = input().split()
    if (b == '+'):
        print (int(a) + int(b))
    else:
        print (int(a) - int(b))


Fixed code:
if __name__ == "__main__":
    a,b,c = input().split()
    if (b == '+'):
        print (int(a) + int(c))
    else:
        print (int(a) - int(c))
Buggy code:
aopb = input().split()
print(aopb)

if aopb[1] == '+':
    print(int(aopb[0]) + int(aopb[2]))
else:
    print(int(aopb[0]) - int(aopb[2]))


Fixed code:
aopb = input().split()

if aopb[1] == '+':
    print(int(aopb[0]) + int(aopb[2]))
else:
    print(int(aopb[0]) - int(aopb[2]))
Buggy code:
a,b,c=input().split()
a=int(a)
c=int(c)
if b=='+':
  print(a+b)
else:
  print(a-b)

Fixed code:
a,b,c=input().split()
a,c=int(a),int(c)
print(a+c if b=="+" else a-c)
Buggy code:
import sys
input = sys.stdin.readline
a,o,b=map(int,input().split())
print(a+b if o=="+" else a-b)


Fixed code:
import sys
input = sys.stdin.readline
a,o,b=input().split()
a=int(a)
b=int(b)
print(a+b if o=="+" else a-b)
Buggy code:
a,b,c=map(str,input().split())
if b=='+':
  print(int(a)+int(b))
else:
  print(int(b)-int(b))

Fixed code:
a,b,c=map(str,input().split())
if b=='+':
  print(int(a)+int(c))
else:
  print(int(a)-int(c))
Buggy code:
A, op, B = map(int, input().split())
if op == '+':
    print(A+B)
elif op == '-':
    print(A-B)

Fixed code:
A,op,B = input().split()
A = int(A)
B = int(B)
if op == "+":
    print(A+B)
elif op == "-":
    print(A-B)
Buggy code:
a, op, b = input().split()
if op = '+':
    print(int(a) + int(b))
else:
    print(int(a) - int(b))

Fixed code:
a, op, b = input().split()

if op == '+':
    print(int(a) + int(b))
else:
    print(int(a) - int(b))
Buggy code:
a,o,b=map(int,input().split())
if str(o)=="+":
    print(a+b)
else:
    print(a-b)

Fixed code:
a,o,b=map(str,input().split())
a=int(a)
b=int(b)
if o=="+":
    print(a+b)
else:
    print(a-b)
Buggy code:
A, op, B = input().split()
A, B = int(A), int(B)
if op == '+'
    print(A + B)
else:
    print(A - B)

Fixed code:
A, op, B = input().split()
print(int(A) + int(B) if op == '+' else int(A) - int(B))
Buggy code:
x = [str(e) for e in input().split()]
if(x[1] == '+'):
  ans = int(x[0]) + int(x[2])
else:
  ans = int(x[0]) + int(x[2])
print(ans)

Fixed code:
x = [str(e) for e in input().split()]
if(x[1] == '+'):
  ans = int(x[0]) + int(x[2])
else:
  ans = int(x[0]) - int(x[2])
print(ans)
Buggy code:
A, op, B = map(int, input().split())
if op == '+':
  print(A + B)
else:
  print(A - B)

Fixed code:
A, op, B = map(str, input().split())

A = int(A)
B = int(B)

if op == "+":
    print(A+B)
else:
    print(A-B)
Buggy code:
a,b,c=input().split()
print(a+c if b=='+' else a-c)

Fixed code:
a,b,c=input().split()
print(int(a)+int(c) if b=='+' else int(a)-int(c))
Buggy code:
ls = [x for x in input().split()]

if ls[1]=="+":
    print(int(ls[0]+ls[2]))
else:
    print(int(ls[0]-ls[2]))



Fixed code:
ls = [x for x in input().split()]

if ls[1]=="+":
    print(int(ls[0])+int(ls[2]))
else:
    print(int(ls[0])-int(ls[2]))
Buggy code:
def main(a,op,b):
  if op=='+':
    return int(a)+int(b)
  elif op=='-':
    return int(a)-int(b)

  
if __init__=='__main__':
  a,op,b=input().split()
  print(main(a,op,b))

Fixed code:
def main(a,op,b):
  if op=='+':
    return int(a)+int(b)
  elif op=='-':
    return int(a)-int(b)
 
  
if __name__=='__main__':
  a,op,b=input().split()
  print(main(a,op,b))
Buggy code:
s=input().split()
A=s[0]
op=s[1]
B=s[2]
if(op=="+"):
  print(A+B)
else:
  print(A-B)

Fixed code:
s=input().split()
A=int(s[0])
op=s[1]
B=int(s[2])
if(op=="+"):
  print(A+B)
else:
  print(A-B)
Buggy code:
s = map(str,input().split())
ans = 0
if s[1]=='+':
  ans = int(s[0])+int(s[2])
else:
  ans = int(s[0])-int(s[2])
print(ans)

Fixed code:
s = list(map(str,input().split()))
ans = 0
if s[1]=='+':
  ans = int(s[0])+int(s[2])
else:
  ans = int(s[0])-int(s[2])
print(ans)
Buggy code:
a,op,b = map(int,input().split())
print(a+b if op =='+' else a-b)


Fixed code:
a,op,b = map(str,input().split())
a = int(a)
b = int(b)
print(a+b if op =='+' else a-b)
Buggy code:
a, b, c = input().split()
if (b == '+'):
    print(a + c)
else:
    print(a - c)


Fixed code:
a, b, c = input().split()
if (b == '+'):
    print(int(a) + int(c))
else:
    print(int(a) - int(c))
Buggy code:
a,op,b=input().split
a = int(a)
b = int(b)

if op == '+':
    print(a+b)
elif op == '-':
    print(a-b)

Fixed code:
a,op,b=input().split()
a = int(a)
b = int(b)

if op == '+':
    print(a+b)
elif op == '-':
    print(a-b)
Buggy code:
p=input().rstrip().split(' ')
if p[1]=='+':
  print(int(p[0]) + int(p[1]))
else:
  print(int(p[0]) + int(p[1]))

Fixed code:
p=input().rstrip().split(' ')
if p[1]=='+':
  print(int(p[0]) + int(p[2]))
else:
  print(int(p[0]) - int(p[2]))
Buggy code:
a,b,c = map(str,input().split())
if b == "+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed code:
a, op, b = map(str, input().split())
a = int(a)
b = int(b)
if op == "+":
    print(a + b)
else:
    print(a - b)
Buggy code:
A, op, B = list(map(str, input().split()))
if op == "+":
    print(A + B)
else:
    print(A - B)


Fixed code:
A, op, B = list(map(str, input().split()))
if op == "+":
    print(int(A) + int(B))
else:
    print(int(A) - int(B))
Buggy code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op="+":
  print(a+b)
else:
  print(a-b)

Fixed code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op=="+":
  print(a+b)
else:
  print(a-b)
Buggy code:
a,b,c = input().split()
if b=='+':
  print(int(a)+int(c))
else:
  print(int(a)-int(b))

Fixed code:
a,b,c = input().split()
if b=='+':
  print(int(a)+int(c))
else:
  print(int(a)-int(c))
Buggy code:
a, b = map(int, input().split())
op =int()

print(a+b if op = "+" else a-b)

Fixed code:
a, op, b = map(str, input().split())

 
print(int(a)+int(b) if op == "+" else int(a)-int(b))
Buggy code:
a, op, b = [int(i) for i in input().split()]
if op == "+":
    print(int(a) + int(b))
else:
    print(int(a) - int(b))


Fixed code:
a, op, b = [i for i in input().split()]
if op == "+":
    print(int(a) + int(b))
else:
    print(int(a) - int(b))
Buggy code:
a, b, c = map(input().split())
a = int(a)
c = int(c)
if b == '+':
  print(a + c)
else:
  print(a - c)


Fixed code:
a,b,c=map(str,input().split())

if b=="+":
  print(int(a)+int(c))
else:
  print(int(a)-int(c))
Buggy code:
A, op, B = input().split()
if op = '-':
  print(A - B)
else:
  print(A + B)

Fixed code:
A, op, B = input().split()
if op == '-':
  print(int(A) - int(B))
else:
  print(int(A) + int(B))
Buggy code:
A, op, B = map(str, input().split())
A = int(A)
B = int(B)

if op == '+':
  print(A+B)
else:
  pirnt(A-B)

Fixed code:
A, op, B = map(str, input().split())
A = int(A)
B = int(B)
 
if op == '+':
  print(A+B)
else:
  print(A-B)
Buggy code:
s = list(input().split())
if s[1] == "+":
  print(int(s[0]) + int(s[2]))
if s[1] == "-":
  print(int(s[0]) - int(s[1]))

Fixed code:
s = list(input().split())
if s[1] == "+":
  print(int(s[0]) + int(s[2]))
if s[1] == "-":
  print(int(s[0]) - int(s[2]))
Buggy code:
a op b = input().split()
if op == "+":
    print(int(a) + int(b))
elif op == '-':
    print(int(a) - int(b))

Fixed code:
a, op, b = input().split()
if op == "+":
    print(int(a) + int(b))
elif op == '-':
    print(int(a) - int(b))
Buggy code:
a = input().split()
a[0], a[2] = map(int, a[::2])
if a[0] == "+":
    print(a[0]+a[2])
else:
    print(a[0]-a[2])


Fixed code:
a = input().split()
a[0], a[2] = map(int, a[::2])
if a[1] == "+":
    print(a[0]+a[2])
else:
    print(a[0]-a[2])
Buggy code:
a, op, b = input().split()
a, b = map(int())
if op = "+":
  print(a + b)
elif op = "-":
  print(a - b)
else:
  pass

Fixed code:
a, op, b = input().split()
a = int(a)
b = int(b)
if op == "+":
    print(a + b)
elif op == "-":
    print(a - b)
else:
    pass
Buggy code:
A, op, B = input().split()

if op == '+':
    print(A+B)
else:
    print(A-B)


Fixed code:
A, op, B = input().split()

A = int(A)
B = int(B)

if op == '+':
    print(A+B)
else:
    print(A-B)
Buggy code:
str = input().split()

if str[1] == "+":
  print str[0]+str[2]
else:
  print str[0]-str[2]


Fixed code:
str = input().split()

if str[1] == "+":
  print(int(str[0]) + int(str[2]))
else:
  print(int(str[0]) - int(str[2]))
Buggy code:
[a,op,b]=list(input().split())
siki=a+op+b
	print(eval(siki))

Fixed code:
[a,op,b]=list(input().split())
siki=a+op+b
print(eval(siki))
Buggy code:
a,b,c=map(input().split())
if b=="+":
  print(int(a)+int(c))
else:
  print(int(a)-int(c))

Fixed code:
(a,b,c) = input().split()
if b=="+":
  print(int(a)+int(c))
else:
  print(int(a)-int(c))
Buggy code:
a, op, b = input().split()
if op = "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))

Fixed code:
a ,op ,b =input().split()
if op=='+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))
Buggy code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op="+":
  print(a+b)
if op="-":
  print(a-b)

Fixed code:
a,op,b=input().split()
a=int(a)
b=int(b)
if op=="+":
  print(a+b)
if op=="-":
  print(a-b)
Buggy code:
a o b = map(str, input().split())

if o == "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))

Fixed code:
a, o, b = map(str, input().split())
 
if o == "+":
  print(int(a) + int(b))
else:
  print(int(a) - int(b))
Buggy code:
a,b=int(input().split())
op = input().split()
if(op == "+"):
    print(a+b)
elif(op == "-"):
    print(a-b)


Fixed code:
a,op,b=input().split()
if(op == "+"):
    print(int(a)+int(b))
elif(op == "-"):
    print(int(a)-int(b))
Buggy code:
a,b,c=input().split()
a=int(a)
b=int(b)
if b=="+":
  print(a+b)
else:print(a-b)

Fixed code:
a,b,c=input().split()
print (int(a) + int(c) if b =="+" else int(a)-int(c))
Buggy code:
a,b,c=input().split()
if b=="+":
  print(a+b)
else:print(a-b)

Fixed code:
a,b,c=input().split()
a=int(a)
c=int(c)
if b=="+":
  print(a+c)
else:print(a-c)
Buggy code:
A op B=map(str,input().split())
if op=="+":
  print(int(A)+int(B))
else:
  print(int(A)-int(B))
  

Fixed code:
A,op,B = map(str,input().split())
if op =="+":
    print(int(A)+int(B))
else:
    print(int(A)-int(B))
Buggy code:
# coding=utf-8

import sys
stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def ns(): return stdin.readline().strip()

def main():
    a,op,b = stdin.readline().split()
    if op == '+':
        print(a+b)
    else:
        print(a-b)
    pass


if __name__ == '__main__':
    main()

Fixed code:
# coding=utf-8

import sys
stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def ns(): return stdin.readline().strip()

def main():
    a,op,b = stdin.readline().strip().split()
    if op == '+':
        print(int(a)+int(b))
    else:
        print(int(a)-int(b))
    pass


if __name__ == '__main__':
    main()
Buggy code:
a,b,op = input().split()
a = int(a)
b = int(b)
if op == '+':
  print(a+b)
else:
  print(a-b)

Fixed code:
a,op,b = input().split()

print(int(a)+int(b) if op == '+' else int(a)-int(b))
Buggy code:
l = list(input().split())
if l[1] == "+":
  print(int(l[0])+int(l[2]))
else:
  print(int(l[0])+int(l[2]))

Fixed code:
l = list(input().split())
if l[1] == "+":
  print(int(l[0])+int(l[2]))
else:
  print(int(l[0])-int(l[2]))
Buggy code:
s_input =   input().split()
if(s_input[1] == '+'):
    print(int(s_input[0]+int(s_input[2]))
else:
    print(int(s_input[0]-int(s_input[2]))

Fixed code:
s_input =   input().split()
if(s_input[1] == '+'):
    print(int(s_input[0])+int(s_input[2]))
else:
    print(int(s_input[0])-int(s_input[2]))
Buggy code:
a,op,b=map(str,input().split())
if(op="+"):
  print(a+b)
else:
  print(a-b)

Fixed code:
a,op,b=map(str,input().split())
if(op=="+"):
  print(int(a)+int(b))
else:
  print(int(a)-int(b))
Buggy code:
a,b = map(int,input().split())
if op == "+":
  print(a+b)
else:
  print(a-b)

Fixed code:
a,op,b=input().split()
a = int(a)
b = int(b)
if op=='+':
    print(a+b)
else:
    print(a-b)
Buggy code:
a,b,c=str(int, input().split())
if b == '+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed code:
a,b,c=map(str, input().split())
if b == '+':
  print((int(a)+int(c)))
else:
  print(int(a)-int(c))
Buggy code:
x,y,z = input().split()
if y=="+":
    print(int(x)+int(y))
else:
    print(int(x)-int(y))

Fixed code:
x,y,z = input().split()
if y=="+":
    print(int(x)+int(z))
else:
    print(int(x)-int(z))
Buggy code:
s = list(input())

a = int(s[0])
b = int(s[2])

op = a[1]

if op == "+":
    print(a+b)
else:
    print(a-b)



Fixed code:
s = list(input().split())

a = int(s[0])
b = int(s[2])

op = s[1]

if op == "+":
    print(a+b)
else:
    print(a-b)
Buggy code:
a,op,b=input().split()
if op = '+':
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed code:
a,op,b = list(input().split())
if op == "+":
    print(int(a)+int(b))
else:
    print(int(a)-int(b))
Buggy code:
n=int(input())
t=list(map(int,input().split()))
m=int(input())
for i in range(m):
  p,x=map(int,input().split())
  y=t[p-1]
  t[p-1]=x:
  print(sum(t))
  t[p-1]=y

Fixed code:
n=int(input())
t=list(map(int,input().split()))
m=int(input())
for i in range(m):
  p,x=map(int,input().split())
  y=t[p-1]
  t[p-1]=x
  print(sum(t))
  t[p-1]=y
Buggy code:
N = int(input())
times = map(int, input().split())
M = int(input())
sum_t = sum(times)
for _ in range(M):
  dist, time = map(int, input().split())
  if times[dist-1] >= time:
    print(sum_t-(times[dist-1]-time))
  else:
    print(sum_t+(time-times[dist-1]))

Fixed code:
N = int(input())
times = list(map(int, input().split()))
M = int(input())
sum_t = sum(times)
for _ in range(M):
  dist, time = map(int, input().split())
  if times[dist-1] >= time:
    print(sum_t-(times[dist-1]-time))
  else:
    print(sum_t+(time-times[dist-1]))