Buggy python submission (verdict: Runtime Error):
X = input('input the place in coding contest: ')
Y = input('input the place in robot maneuver: ')

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000
rejected = 0

if X == 1:
    if Y == 1:
        totalAmount = first + first + extraPrice
    elif Y == 2:
        totalAmount = first + second
    elif Y == 3:
        totalAmount = first + third
    elif Y < 1 or Y > 3:
        totalAmount = first
elif X == 2:
    if Y == 1:
        totalAmount = second + first
    elif Y == 2:
        totalAmount = second + second
    elif Y == 3:
        totalAmount = second + third
    elif Y < 1 or Y > 3:
        totalAmount = second
elif X == 3:
    if Y == 1:
        totalAmount = third + first
    elif Y == 2:
        totalAmount = third + second
    elif Y == 3:
        totalAmount = third + third
    elif Y < 1 or Y > 3:
        totalAmount = third
elif X < 1 or X > 3:
    if Y == 1:
        totalAmount = first
    elif Y == 2:
        totalAmount = second
    elif Y == 3:
        totalAmount = third
    elif Y < 1 or Y > 3:
        totalAmount = rejected
print(totalAmount)

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

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000


if X == 1:
    totalAmount = first
    pass
elif X == 2:
    totalAmount = second
    pass
elif X == 3:
    totalAmount = third
    pass
elif X < 1 or X > 3:
    totalAmount = 0
    pass

if Y == 1:
    totalAmount = totalAmount + first
    pass
elif Y == 2:
    totalAmount = totalAmount + second
    pass
elif Y == 3:
    totalAmount = totalAmount + third
    pass
elif Y < 1 or Y > 3:
    totalAmount = totalAmount + 0
    pass

if X == 1 and Y == 1:
    totalAmount = totalAmount + extraPrice

print(totalAmount)

Buggy python submission (verdict: Runtime Error):
X = int(input('input the place in coding contest: '))
Y = int(input('input the place in robot maneuver: '))

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000
rejected = 0

if X == 1:
    if Y == 1:
        totalAmount = first + first + extraPrice
    elif Y == 2:
        totalAmount = first + second
    elif Y == 3:
        totalAmount = first + third
    elif Y < 1 or Y > 3:
        totalAmount = first
elif X == 2:
    if Y == 1:
        totalAmount = second + first
    elif Y == 2:
        totalAmount = second + second
    elif Y == 3:
        totalAmount = second + third
    elif Y < 1 or Y > 3:
        totalAmount = second
elif X == 3:
    if Y == 1:
        totalAmount = third + first
    elif Y == 2:
        totalAmount = third + second
    elif Y == 3:
        totalAmount = third + third
    elif Y < 1 or Y > 3:
        totalAmount = third
elif X < 1 or X > 3:
    if Y == 1:
        totalAmount = first
    elif Y == 2:
        totalAmount = second
    elif Y == 3:
        totalAmount = third
    elif Y < 1 or Y > 3:
        totalAmount = rejected
print(totalAmount)

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

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000


if X == 1:
    totalAmount = first
    pass
elif X == 2:
    totalAmount = second
    pass
elif X == 3:
    totalAmount = third
    pass
elif X < 1 or X > 3:
    totalAmount = 0
    pass

if Y == 1:
    totalAmount = totalAmount + first
    pass
elif Y == 2:
    totalAmount = totalAmount + second
    pass
elif Y == 3:
    totalAmount = totalAmount + third
    pass
elif Y < 1 or Y > 3:
    totalAmount = totalAmount + 0
    pass

if X == 1 and Y == 1:
    totalAmount = totalAmount + extraPrice

print(totalAmount)

Buggy python submission (verdict: Runtime Error):
def calculateTotalAmount(x, y):
    totalAmount = 0
    if x == 1:
        if y == 1:
            totalAmount = 300000 + 300000 + 400000
        elif y == 2:
            totalAmount = 300000 + 200000
        elif y == 3:
            totalAmount = 300000 + 100000
        else:
            totalAmount = 300000
    elif x == 2:
        if y == 1:
            totalAmount = 200000 + 300000
        elif y == 2:
            totalAmount = 200000 + 200000
        elif y == 3:
            totalAmount = 200000 + 100000
        else:
            totalAmount = 200000
    elif x == 3:
        if y == 1:
            totalAmount = 100000 + 300000
        elif y == 2:
            totalAmount = 100000 + 200000
        elif y == 3:
            totalAmount = 100000 + 100000
        else:
            totalAmount = 100000
    else:
        if y == 1:
            totalAmount = 300000
        elif y == 2:
            totalAmount = 200000
        elif y == 3:
            totalAmount = 100000
        else:
            totalAmount = 0
    return totalAmount


X = int(input('input the place in coding contest: '))
Y = int(input('input the place in robot maneuver: '))

totalAmount = calculateTotalAmount(X, Y)
print(totalAmount)

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

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000


if X == 1:
    totalAmount = first
    pass
elif X == 2:
    totalAmount = second
    pass
elif X == 3:
    totalAmount = third
    pass
elif X < 1 or X > 3:
    totalAmount = 0
    pass

if Y == 1:
    totalAmount = totalAmount + first
    pass
elif Y == 2:
    totalAmount = totalAmount + second
    pass
elif Y == 3:
    totalAmount = totalAmount + third
    pass
elif Y < 1 or Y > 3:
    totalAmount = totalAmount + 0
    pass

if X == 1 and Y == 1:
    totalAmount = totalAmount + extraPrice

print(totalAmount)

Buggy python submission (verdict: Runtime Error):
def calculateTotalAmount(x, y):
    totalAmount = 0
    if x == 1:
        if y == 1:
            totalAmount = 300000 + 300000 + 400000
        elif y == 2:
            totalAmount = 300000 + 200000
        elif y == 3:
            totalAmount = 300000 + 100000
        else:
            totalAmount = 300000
    elif x == 2:
        if y == 1:
            totalAmount = 200000 + 300000
        elif y == 2:
            totalAmount = 200000 + 200000
        elif y == 3:
            totalAmount = 200000 + 100000
        else:
            totalAmount = 200000
    elif x == 3:
        if y == 1:
            totalAmount = 100000 + 300000
        elif y == 2:
            totalAmount = 100000 + 200000
        elif y == 3:
            totalAmount = 100000 + 100000
        else:
            totalAmount = 100000
    else:
        if y == 1:
            totalAmount = 300000
        elif y == 2:
            totalAmount = 200000
        elif y == 3:
            totalAmount = 100000
        else:
            totalAmount = 0
    return totalAmount


X = int(input('input the place in coding contest: '))
Y = int(input('input the place in robot maneuver: '))

totalAmount = calculateTotalAmount(X, Y)
print(totalAmount)

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

totalAmount = 0
first = 300000
second = 200000
third = 100000
extraPrice = 400000


if X == 1:
    totalAmount = first
    pass
elif X == 2:
    totalAmount = second
    pass
elif X == 3:
    totalAmount = third
    pass
elif X < 1 or X > 3:
    totalAmount = 0
    pass

if Y == 1:
    totalAmount = totalAmount + first
    pass
elif Y == 2:
    totalAmount = totalAmount + second
    pass
elif Y == 3:
    totalAmount = totalAmount + third
    pass
elif Y < 1 or Y > 3:
    totalAmount = totalAmount + 0
    pass

if X == 1 and Y == 1:
    totalAmount = totalAmount + extraPrice

print(totalAmount)