qyliang/CodeNanoFix huggingface dataset:
Buggy code:
X, Y = map(int, input().split())

sumPriz = 0

if X == 1:
    sumPriz += 300000
elif X == 2:
    200000
elif X == 3:
    100000

if Y == 1:
    sumPriz += 300000
    if X == 1:
        sumPriz += 400000
elif Y == 2:
    200000
elif Y == 3:
    100000

print(sumPriz)

Fixed code:
X, Y = map(int, input().split())

sumPriz = 0

if X == 1:
    sumPriz += 300000
elif X == 2:
    sumPriz += 200000
elif X == 3:
    sumPriz += 100000

if Y == 1:
    sumPriz += 300000
    if X == 1:
        sumPriz += 400000
elif Y == 2:
    sumPriz += 200000
elif Y == 3:
    sumPriz += 100000

print(sumPriz)
Buggy code:
X, Y = map(int, input().split())

points = [-1, 100000, 200000, 300000, 0]
print(400000*(X==Y==1) + points[max(4, X)] + points[max(4, Y)])

Fixed code:
X, Y = map(int, input().split())

points = [-1, 300000, 200000, 100000, 0]
print(400000*(X==Y==1) + points[min(4, X)] + points[min(4, Y)])
Buggy code:
X,Y=map(int,input().split())
if X==1 :
    x=300000
elif X==2 :
    x=200000
elif X==3 :
    x=100000
if Y==1 :
    y=300000
elif Y==2 :
    y=200000
elif Y==3 :
    y=100000
if X==1 and Y==1 :
    print(x+y+400000)
else :
    print(x+y)

Fixed code:
X,Y=map(int,input().split())
if X==1 :
    x=300000
elif X==2 :
    x=200000
elif X==3 :
    x=100000
else :
    x=0
if Y==1 :
    y=300000
elif Y==2 :
    y=200000
elif Y==3 :
    y=100000
else :
    y=0
if X==1 and Y==1 :
    print(x+y+400000)
else :
    print(x+y)
Buggy code:
h = list(map(int, input().split()))
a = 0
for i in range(2):
  if h[i] << 4:
    a = a + 100000 * (4-h[i])
if h[0] == 1 and h[1] == 1:
  a = a + 400000
print(a)
    

Fixed code:
h = list(map(int, input().split()))
a = 0
for i in range(2):
  if h[i] <= 3:
    a = a + 100000 * (4-h[i])
if h[0] == 1 and h[1] == 1:
  a = a + 400000
print(a)
Buggy code:
a,b = map(int,input().split())
c = 0
if a == 3:
    c += 1
elif a == 2:
    c += 2
elif a == 1:
    c += 3

if b == 3:
    c += 1
elif b == 2:
    b += 2
elif a == 1:
    b += 3

if a == b == 1:
    c += 4

print(c*100000)

Fixed code:
a,b = map(int,input().split())
c = 0
if a == 3:
    c += 1
elif a == 2:
    c += 2
elif a == 1:
    c += 3

if b == 3:
    c += 1
elif b == 2:
    c += 2
elif b == 1:
    c += 3

if a == b == 1:
    c += 4

print(c*100000)
Buggy code:
input_number = input()
input_list = input_number.split()
coding_contest_rank = int(input_list[0])
robot_maneuver_rank = int(input_list[1])

if coding_contest_rank == 1:
    coding_contest_money = 300000
if robot_maneuver_rank == 1:
    robot_maneuver_money = 300000
if coding_contest_rank == 2:
    coding_contest_money = 200000
if robot_maneuver_rank == 2:
    robot_maneuver_money = 200000
if coding_contest_rank == 3:
    coding_contest_money = 100000
if robot_maneuver_rank == 3:
    robot_maneuver_money = 100000
if coding_contest_rank > 3:
    coding_contest_money = 0
if robot_maneuver_rank > 3:
    robot_maneuver_money = 0
elif coding_contest_rank == 1 and robot_maneuver_rank == 1:
    total_money = coding_contest_money + robot_maneuver_money + 400000
    print(total_money)

print(coding_contest_money + robot_maneuver_money)

Fixed code:
input_number = input()
input_list = input_number.split()
coding_contest_rank = int(input_list[0])
robot_maneuver_rank = int(input_list[1])

if coding_contest_rank == 1:
    coding_contest_money = 300000
if robot_maneuver_rank == 1:
    robot_maneuver_money = 300000
if coding_contest_rank == 2:
    coding_contest_money = 200000
if robot_maneuver_rank == 2:
    robot_maneuver_money = 200000
if coding_contest_rank == 3:
    coding_contest_money = 100000
if robot_maneuver_rank == 3:
    robot_maneuver_money = 100000
if coding_contest_rank > 3:
    coding_contest_money = 0
if robot_maneuver_rank > 3:
    robot_maneuver_money = 0
if coding_contest_rank == 1 and robot_maneuver_rank == 1:
    total_money = coding_contest_money + robot_maneuver_money + 400000
    print(total_money)    
else:
    print(coding_contest_money + robot_maneuver_money)
Buggy code:
def p(n):
    if n == 1:
        return 300000
    elif n == 2:
        return 200000
    elif n == 3:
        return 300000
    else:
        return 0

x, y = map(int, input().split())
ans = 0
if x == y == 1:
    ans += 400000
ans += p(x) + p(y)
print(ans)


Fixed code:
def p(n):
    if n == 1:
        return 300000
    elif n == 2:
        return 200000
    elif n == 3:
        return 100000
    else:
        return 0

x, y = map(int, input().split())
ans = 0
if x == y == 1:
    ans += 400000
ans += p(x) + p(y)
print(ans)
Buggy code:
x, y = map(int, input().split())
get=0
if x==1 or y==1:
    get+=300000
if x==2 or y==2:
    get+=200000
if x==3 or y==3:
    get+=100000
if x==1 and y==1:
    get+=400000
print(get)

Fixed code:
x, y = map(int, input().split())
get=0
if x==1:
    get+=300000
if y==1:
    get+=300000
if x==2:
    get+=200000
if y==2:
    get+=200000
if x==3:
    get+=100000
if y==3:
    get+=100000
if x==1 and y==1:
    get+=400000
print(get)
Buggy code:
X , Y = map(int,input().split())
ans = 0
if X == 1 and Y == 1:
    ans += 1000000
elif X == 3:
    ans += 100000

elif X == 2 :
    ans += 200000

elif X == 1 :
    ans += 300000


if Y == 3:
    ans += 100000
elif Y == 2 :
    ans += 200000
elif Y == 1 :
    ans += 300000
print(ans)

Fixed code:
X , Y = map(int,input().split())
ans = 0
if X == 3:
    ans += 100000

elif X == 2 :
    ans += 200000

elif X == 1 :
    ans += 300000


if Y == 3:
    ans += 100000
elif Y == 2 :
    ans += 200000
elif Y == 1 :
    ans += 300000

if X==1 and Y == 1:
    ans += 400000
print(ans)
Buggy code:
X, Y = map(int,input().split())

ans = max(X-4,0)* 100000 + max(Y-4,0)* 100000
if X == Y == 1:
  ans += 400000
print(ans)

Fixed code:

X, Y = map(int,input().split())

ans = max(4-X,0)* 100000 + max(4-Y,0)* 100000
if (X == Y) *  (Y== 1):
  ans += 400000
print(ans)
Buggy code:
x,y = map(int,input().split())
def point(a):
  if a == 1:
    return 300000
  elif a == 2:
    return 200000
  elif a == 3:
    return 100000
  else:
    return 0
  
a = point(x)
b = point(y)

if a == 1 and b == 1:
  print(1000000)
else:
  print(a+b)

Fixed code:
x,y = map(int,input().split())
def point(a):
  if a == 1:
    return 300000
  elif a == 2:
    return 200000
  elif a == 3:
    return 100000
  else:
    return 0
  
c = point(x)
b = point(y)

if x == 1 and y == 1:
  print(1000000)
else:
  print(c+b)
Buggy code:
X,Y = map(int,input().split())
if X < 4:
  X = (4-X)*100000
else:
  X = 0
if Y < 4:
  Y = (4-Y)*100000
else:
  Y = 0
if X == 1 and Y == 1:
  print(X+Y+400000)
else:
  print(X+Y)


Fixed code:
X,Y = map(int,input().split())
if X < 4:
  X = (4-X)*100000
else:
  X = 0
if Y < 4:
  Y = (4-Y)*100000
else:
  Y = 0
if X == 300000 and Y == 300000:
  print(X+Y+400000)
else:
  print(X+Y)
Buggy code:
x,y=map(int,input().split())
l=[0,300000,200000,100000]
if x==y==1:
 print(l[x]+l[y]+400000)
elif y>3:
    print(l[x])
elif x>3:
    print(l[y])
else:
    print(l[x]+l[y])

Fixed code:
x,y=map(int,input().split())
l=[0,300000,200000,100000]
if x==y==1:
 print(l[x]+l[y]+400000)
else:
    if y > 3:
        y=0
    if x>3:
        x=0
    print(l[x]+l[y])
Buggy code:
a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:1000000}
if a>4:
    x=0
else:
    x=a
if b>4:
    y=0
else:
    y=b
if x==1 and y==1:
    ans=1000000
else :
    ans=lst[x]+lst[y]


print(ans)

Fixed code:
a,b=map(int,input().split())
lst={0:0,1:300000,2:200000,3:100000}
if a>3:
    x=0
else:
    x=a
if b>3:
    y=0
else:
    y=b
if x==1 and y==1:
    ans=1000000
else :
    ans=lst[x]+lst[y]


print(ans)
Buggy code:
arr=list(map(int,input().split()))
s=0
for i in range(1,4):
  for j in range(2):
    if arr[j]==i:
      s+=(4-i)*100000
if arr[0]==arr[1] and arr[1]=1:
  s+=400000
print(s)
  


Fixed code:
arr=list(map(int,input().split()))
s=0
for i in range(1,4):
  for j in range(2):
    if arr[j]==i:
      s+=(4-i)*100000
if arr[0]==arr[1] and arr[1]==1:
  s+=400000
print(s)
Buggy code:
def test(n):
  m = 0
  if n == 3:
    m += 100000
  elif n == 2:
    m += 200000
  elif n == 1:
    m += 300000
  return m

x, y = int(input())
ans = test(x) + test(y)
if ans == 600000:
  ans += 400000

print(ans)

Fixed code:
def test(n):
  m = 0
  if n == 3:
    m += 100000
  elif n == 2:
    m += 200000
  elif n == 1:
    m += 300000
  return m

x, y = map(int, input().split())
ans = test(x) + test(y)
if ans == 600000:
  ans += 400000

print(ans)
Buggy code:
a, b = [int(x) for x in input().split()]
won = 0
if a in range(1, 4):
  won  += [0,300000,200000,200000][a]
if b in range(1, 4):
  won  += [0,300000,200000,100000][b]
if a == 1 and b == 1:won += 400000  

print(won)

Fixed code:
a, b = [int(x) for x in input().split()]
won = 0
if a in range(1, 4):
  won  += [0,300000,200000,100000][a]
if b in range(1, 4):
  won  += [0,300000,200000,100000][b]
if a == 1 and b == 1:won += 400000  
 
print(won)
Buggy code:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print(x*100000)
elif x>=4 and y<=3:
  print(y*100000)
elif x<=3 and y<=3:
  peint(x*100000+y*100000)
else:
  print(0)

Fixed code:
x,y=map(int,input().split())
if x==1 and y==1:
  print(1000000)
elif x<=3 and y>=4:
  print((x-4)*(-100000))
elif x>=4 and y<=3:
  print((y-4)*(-100000))
elif x<=3 and y<=3:
  print((x-4)*(-100000)+(y-4)*(-100000))
else:
  print(0)
Buggy code:
, y = map(int, input().split())
 
a = [0, 300000, 200000, 100000, 0]
ans = 0
 
x = min(x, 4)
y = min(y, 4)
 
ans = a[x] + a[y]
if x == 1 and y == 1:
    ans += 400000
 
print(ans)

Fixed code:
x, y = map(int, input().split())
 
a = [0, 300000, 200000, 100000, 0]
ans = 0
 
x = min(x, 4)
y = min(y, 4)
 
ans = a[x] + a[y]
if x == 1 and y == 1:
    ans += 400000
 
print(ans)
Buggy code:
x, y = (max(4 - int(i), 0) or i in input().split())
print((x + y + 4*(x==y==3)) * 10**5)

Fixed code:
x, y = (max(4 - int(i), 0) for i in input().split())
print((x + y + 4*(x==y==3)) * 10**5)
Buggy code:
X, Y = map(int, input().split())
 
prices = {1: 300000, 2: 200000, 3: 1000000}
 
ans = 0
if X < 4:
    ans += prices[X]
 
if Y < 4:
    ans += prices[Y]
 
if Y == 1 and X == 1:
    ans += 400000
 
print(ans)


Fixed code:
X, Y = map(int, input().split())
 
prices = {1: 300000, 2: 200000, 3: 100000}
 
ans = 0
if X < 4:
    ans += prices[X]
 
if Y < 4:
    ans += prices[Y]
 
if Y == 1 and X == 1:
    ans += 400000
 
print(ans)
Buggy code:
x, y = map(int, input().split())
ans += max(0, (4-x)*100000)
ans += max(0, (4-y)*100000)
if x == 1 and y == 1:
	ans += 400000
print(ans)

Fixed code:
x, y = map(int, input().split())
ans = 0
ans += max(0, (4-x)*100000)
ans += max(0, (4-y)*100000)
if x == 1 and y == 1:
	ans += 400000
print(ans)
Buggy code:
X, Y = map(int, input().split())
a = 0
if X == 1:
  a += 300000
elif X == 2:
  a += 200000
elif X == 3:
  a += 10000

if Y == 1:
  a += 300000
elif Y == 2:
  a += 200000
elif Y == 3:
  a += 100000

if X == 1 and Y == 1:
  a += 400000
print(a)


Fixed code:
X, Y = map(int, input().split())
a = 0
if X == 1:
  a += 300000
elif X == 2:
  a += 200000
elif X == 3:
  a += 100000

if Y == 1:
  a += 300000
elif Y == 2:
  a += 200000
elif Y == 3:
  a += 100000

if X == 1 and Y == 1:
  a += 400000
print(a)
Buggy code:
x, y = input().split()
s = 0
if x == 1:
    s += 300000
elif x == 2:
    s += 200000
elif x == 3:
    s += 100000
else:
    s += 0
if y == 1:
    s += 300000
elif y == 2:
    s += 200000
elif y == 3:
    s += 100000
else:
    s += 0
if x == 1 and y == 1:
    s += 400000
print(s)

Fixed code:
x, y = input().split()
s = 0
if int(x) == 1:
    s += 300000
elif int(x) == 2:
    s += 200000
elif int(x) == 3:
    s += 100000
else:
    s += 0
if int(y) == 1:
    s += 300000
elif int(y) == 2:
    s += 200000
elif int(y) == 3:
    s += 100000
else:
    s += 0
if int(x) == 1 and int(y) == 1:
    s += 400000
print(s)
Buggy code:
a,b = list(map(int, input().split()))
r=[300000, 200000, 100000]
ra=0
if a+b==2:
  print('1000000')
else:
    if a<4:
      ra += r[a-1]
    if b<4:
      ra += r[b-1]
 
print(ra)

Fixed code:
a,b = list(map(int, input().split()))
r=[300000, 200000, 100000]
ra=0
if a+b==2:
  print('1000000')
else:
    if a<4:
      ra += r[a-1]
    if b<4:
      ra += r[b-1]
    print(ra)
Buggy code:
x,y=map(int,input().split())
list=[300000,200000,100000]
if x==1 and y==1:
    print(2*300000+400000)
elif x<4 and y<4:
    print(list[x-1]+list[y-1])
else:
    print(0)

Fixed code:
x,y=map(int,input().split())
list=[300000,200000,100000,0]
if x>4:
    x=4
if y>4:
    y=4
if x==1 and y==1:
    print(2*300000+400000)
else:
    print(list[x-1]+list[y-1])
Buggy code:
n,m = map(int,input().split())
lis = [0]*205
lis[0] == 300000
lis[1] == 200000
lis[2] == 100000
if n == m and n == 1:
  print(1000000)
else:
  print(lis[n-1]+lis[m-1])


Fixed code:
n,m = map(int,input().split())
lis = [0]*205
lis[0] = 300000
lis[1] = 200000
lis[2] = 100000
if n == m and n == 1:
  print(1000000)
else:
  print(lis[n-1]+lis[m-1])
Buggy code:
x,y=map(int,input().split())
a=[300000,200000,100000]
add=0
if x*y==1:
    add=400000
print(a[x-1]+a[y-1]+add)


Fixed code:
x,y=map(int,input().split())
a=[300000,200000,100000]
b=[0]*300
a=a+b
add=0
if x*y==1:
    add=400000
print(a[x-1]+a[y-1]+add)
Buggy code:
x,y = (int(x) for x in input().split())

if x>3 & y>3:
    print(0)
elif x<=3 & y<=3:
    if x+y == 2:
        print(1000000)
    elif x+y == 3:
        print(500000)
    elif x+y == 4:
        print(400000)
    elif x+y == 5:
        print(300000)
    else:
        print(200000)
else:
    z = min(x,y)
    if z == 1:
        print(300000)
    elif z == 2:
        print(200000)
    else:
        print(100000)

Fixed code:
x,y = (int(x) for x in input().split())

if x>3 and y>3:
    print(0)
elif x<=3 and y<=3:
    if x+y == 2:
        print(1000000)
    elif x+y == 3:
        print(500000)
    elif x+y == 4:
        print(400000)
    elif x+y == 5:
        print(300000)
    else:
        print(200000)
else:
    z = min(x,y)
    if z == 1:
        print(300000)
    elif z == 2:
        print(200000)
    else:
        print(100000)
Buggy code:
X, Y = map(int, input().split())

ans = 0

if X == 3:
    ans += 100000
elif X == 2:
    ans += 200000
elif X == 1:
    ans + 300000

if Y == 3:
    ans += 100000
elif Y == 2:
    ans += 200000
elif Y == 1:
    ans + 300000


if ans == 600000:
    ans += 400000

print(ans)


Fixed code:
X, Y = map(int, input().split())

ans = 0

if X == 3:
    ans += 100000
elif X == 2:
    ans += 200000
elif X == 1:
    ans += 300000

if Y == 3:
    ans += 100000
elif Y == 2:
    ans += 200000
elif Y == 1:
    ans += 300000


if ans == 600000:
    ans += 400000

print(ans)
Buggy code:
X, Y = map(int, input().split())
if X <= 3 and Y <= 3:
    ans = (4-X) * 100000 + (4-Y) * 100000
    if X == 1 and Y == 1:
        ans += 400000
elif X <= 3:
    ans = (4-X) * 100000
elif Y <= 3:
    ans = (4-Y) * 100000
    
print(ans)

Fixed code:
X, Y = map(int, input().split())
if X <= 3 and Y <= 3:
    ans = (4-X) * 100000 + (4-Y) * 100000
    if X == 1 and Y == 1:
        ans += 400000
elif X <= 3:
    ans = (4-X) * 100000
elif Y <= 3:
    ans = (4-Y) * 100000
else:
    ans = 0
    
print(ans)
Buggy code:
X,Y=map(int,input().split())

prize=0

if X==1:
    prize+=300000
    if Y==1:
        pprize+=700000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==2:
    prize+=200000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==3:
    prize+=100000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass

print(prize)

Fixed code:
X,Y=map(int,input().split())

prize=0

if X==1:
    prize+=300000
    if Y==1:
        prize+=700000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==2:
    prize+=200000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
elif X==3:
    prize+=100000
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass
else:
    if Y==1:
        prize+=300000
    elif Y==2:
        prize+=200000
    elif Y==3:
        prize+=100000
    else:
        pass

print(prize)
Buggy code:
X, Y = map(int, input().split())

if X == 1 and Y == 1:
    print(1000000)
elif X < 3 and Y < 3:
    print(0)
elif (X == 1 and Y == 2) or (X == 2 and Y == 1):
    print(500000)
elif (X == 1 and Y == 3) or (X == 3 and Y == 1):
    print(400000)
elif (X == 2 and Y == 3) or (X == 3 and Y == 2):
    print(300000)
elif (X == 3 and Y == 3) or (X == 3 and Y == 3):
    print(200000)
elif (X == 3 and Y < 3) or (X < 3 and Y == 3):
    print(100000)





Fixed code:
X, Y = map(int, input().split())

if X == 1 and Y == 1:
    print(1000000)
elif X > 3 and Y > 3:
    print(0)
elif (X == 1 and Y == 2) or (X == 2 and Y == 1):
    print(500000)
elif (X == 1 and Y == 3) or (X == 3 and Y == 1):
    print(400000)
elif (X == 1 and Y > 3) or (X > 3 and Y == 1):
    print(300000)
elif (X == 2 and Y == 2):
    print(400000)
elif (X == 2 and Y == 3) or (X == 3 and Y == 2):
    print(300000)
elif (X == 2 and Y > 3) or (X > 3 and Y == 2):
    print(200000)
elif (X == 3 and Y == 3) or (X == 3 and Y == 3):
    print(200000)
elif (X == 3 and Y > 3) or (X > 3 and Y == 3):
    print(100000)
Buggy code:
prize = {1:300000,2:200000,3:100000}

a,b = [int(i) for i in input().split()]

if a == b == 1:
    print(1000000)
elif a < 4 and b < 4:
    print(prize[a] + prize[b])
elif a >= 4:
    print(prize[b])
elif b >= 4:
    print(prize[a])
else:
    print(0)


Fixed code:
prize = {1:300000,2:200000,3:100000}

a,b = [int(i) for i in input().split()]

if a == b == 1:
    print(1000000)
elif a < 4 and b < 4:
    print(prize[a] + prize[b])
elif a >= 4 and b < 4:
    print(prize[b])
elif b >= 4 and a < 4:
    print(prize[a])
else:
    print(0)
Buggy code:
X, Y = map(int, input().split())
ans = 0
if X == 1 and Y == 1:
    asn = 1000000
else:
    if X == 1:
        ans += 300000
    elif X == 2:
        ans += 200000
    elif X == 3:
        ans += 100000
    if Y == 1:
        ans += 300000
    elif Y == 2:
        ans += 200000
    elif Y ==3:
        ans += 100000
print(ans)

Fixed code:
X, Y = map(int, input().split())
ans = 0
if X == 1 and Y == 1:
    ans = 1000000
else:
    if X == 1:
        ans += 300000
    elif X == 2:
        ans += 200000
    elif X == 3:
        ans += 100000
    if Y == 1:
        ans += 300000
    elif Y == 2:
        ans += 200000
    elif Y ==3:
        ans += 100000
print(ans)
Buggy code:
x, y = map(int(input().split()))
ans = 0
if x == 1:
  ans += 300000
elif x == 2:
  ans += 200000
elif x == 3:
  ans += 100000

if y == 1:
  ans += 300000
elif y == 2:
  ans += 200000
elif y == 3:
  ans += 100000
if x == 1 and y == 1:
  ans += 400000
  
print(ans)
  
  
           

Fixed code:
x, y = map(int, input().split())

ans = 0
if x == 1:
    ans += 300000
elif x == 2:
    ans += 200000
elif x == 3:
    ans += 100000

if y == 1:
    ans += 300000
elif y == 2:
    ans += 200000
elif y == 3:
    ans += 100000

if x == 1 and y == 1:
    ans += 400000

print(ans)
Buggy code:
X, Y = map(int, input().split())

P = [300000, 200000, 100000, 0]

if X == 1 and Y == 1:
    print(100000)
else:
    print(P[min(3, X - 1)] + P[min(3, Y - 1)])


Fixed code:
X, Y = map(int, input().split())

P = [300000, 200000, 100000, 0]

if X == 1 and Y == 1:
    print(1000000)
else:
    print(P[min(3, X - 1)] + P[min(3, Y - 1)])
Buggy code:
X, Y = map(int, input().split())

prize_list = [100000, 200000, 300000]

ans = prize_list[3-X] + prize_list[3-Y]
if X == 1 and Y == 1:
    ans += 400000
print(ans)

Fixed code:
X, Y = map(int, input().split())

prize_list = [300000, 200000, 100000]

ans = 0
if X <= 3:
    ans += prize_list[X-1]
if Y <= 3:
    ans += prize_list[Y-1]
if X == 1 and Y == 1:
    ans += 400000
print(ans)
Buggy code:
if __name__ == '__main__':
  x, y = map(int, input().split())
  priceX = priceY = 0
  
  print(y)
  if(x == 1):
    priceX = 300000
  elif(x == 2):
    priceX = 200000
  elif(x == 3):
    priceX = 100000
  else:
  	priceX = 0

  if(y == 1):
    priceY = 300000
  elif(y == 2):
  	priceY = 200000
  elif(y == 3):
   	priceY = 100000
  else:
   	priceY = 0

  print(priceX)
  print(priceY)
  if(x == 1 and y == 1):
   	print(400000 + priceX + priceY)
  else:
   	print(priceX + priceY)

Fixed code:
if __name__ == '__main__':
  x, y = map(int, input().split())
  priceX = priceY = 0
  if(x >= 1 and x <= 205 and y >= 1 and y<= 205):
    if(x == 1):
      priceX = 300000
    elif(x == 2):
      priceX = 200000
    elif(x == 3):
      priceX = 100000
    else:
  	  priceX = 0

    if(y == 1):
      priceY = 300000
    elif(y == 2):
  	  priceY = 200000
    elif(y == 3):
   	  priceY = 100000
    else:
   	  priceY = 0
    
    if(x == 1 and y == 1):
   	  print(400000 + priceX + priceY)
    else:
   	  print(priceX + priceY)
Buggy code:
X, Y = map(int,input().split())

p = []

if X == 1 and Y == 1:
  p.append(400000)
elif X == 1:
  p.append(300000)
elif X == 2:
  p.append(200000)
elif X == 3:
  p.append(100000)
elif Y == 1:
  p.append(300000)
elif Y == 2:
  p.append(200000)
elif Y == 3:
  p.append(100000)

ans = sum(p)
print(ans)

Fixed code:
X, Y = map(int,input().split())

p = []

if X == 1:
  p.append(300000)
elif X == 2:
  p.append(200000)
elif X == 3:
  p.append(100000)

if Y == 1:
  p.append(300000)
elif Y == 2:
  p.append(200000)
elif Y == 3:
  p.append(100000)


if X == 1 and Y == 1:
  p.append(400000)

ans = sum(p)
print(ans)
Buggy code:
a,b = map(int,input().split())
ans = 0
if a == 1:ans += 300000
elif a == 2:ans += 200000
elif a == 3:ans += 100000
if b == 1:ans += 300000
elif b == 2:ans += 200000
elif b == 3:ans += 100000
print(ans)

Fixed code:
a,b = map(int,input().split())
ans = 0
if a == 1:ans += 300000
elif a == 2:ans += 200000
elif a == 3:ans += 100000
if b == 1:ans += 300000
elif b == 2:ans += 200000
elif b == 3:ans += 100000
if ans == 600000:ans += 400000
print(ans)
Buggy code:
aw = 0
for i in map(int, input().split()):
    if i == 1:
        s+=300000
    elif i ==2 :
        s+= 200000
    elif i ==3 :
        s+= 100000
if aw== 600000:
    aw= 1000000
print(aw)

Fixed code:
aw = 0
for i in map(int, input().split()):
    if i == 1:
        aw+=300000
    elif i ==2 :
        aw+= 200000
    elif i ==3 :
        aw+= 100000
if aw== 600000:
    aw= 1000000
print(aw)
Buggy code:
x,y = map(int,input().split())
ans = 0

if x == 1 and y == 1:
    ans += 400000
    
li = [0,300000, 200000, 100000]

ans += li[x]
ans += li[y]

print(ans)

Fixed code:
x,y = map(int,input().split())
ans = 0

if x == 1 and y == 1:
    ans += 400000
    
li = [0,300000, 200000, 100000]

if x <= 3:
    ans += li[x]
if y <= 3:
    ans += li[y]

print(ans)
Buggy code:
#coding:utf-8

x, y = map(int, input().split())
money = 0

#coding:
if x == 1:
  money += 300000
elif x == 2:
  money += 200000
elif x == 3:
  money += 300000

#device:
if y == 1:
  money += 300000
elif y == 2:
  money += 200000
elif y == 3:
  money += 300000
  
#bonus
if x == 1 and y == 1:
  money += 400000

print(money)

Fixed code:
#coding:utf-8

x, y = map(int, input().split())
money = 0

#coding:
if x == 1:
  money += 300000
elif x == 2:
  money += 200000
elif x == 3:
  money += 100000

#device:
if y == 1:
  money += 300000
elif y == 2:
  money += 200000
elif y == 3:
  money += 100000
  
#bonus
if x == 1 and y == 1:
  money += 400000

print(money)
Buggy code:
a = list(map(int, input().split()))

for i in range(len(a)):
  if a[i] == 1:
    a[i] = 300000
  elif a[i] == 2:
    a[i] = 200000
  elif a[i] == 3:
    a[i] = 100000
  else:
    a[i] = 0
    
if a[0] == 1 and a[1] == 1:
  p = a[0] + a[1] + 400000
else:
  p = a[0] + a[1]
      
print(p)

Fixed code:
a = list(map(int, input().split()))

for i in range(len(a)):
  if a[i] == 1:
    a[i] = 300000
  elif a[i] == 2:
    a[i] = 200000
  elif a[i] == 3:
    a[i] = 100000
  else:
    a[i] = 0

    
if a[0] == 300000 and a[1] == 300000:
  p = 1000000
else:
  p = a[0] + a[1]
      
print(p)