Buggy python submission (verdict: Runtime Error):
def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1

print(rec(2000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1

print(rec(2000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(600000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(800000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(700000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(1000000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(1000000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import sys
sys.setrecursionlimit(1000000000)

def rec(n):
    if n == 1:
        return 1
    return rec(n-1) + 1


print(rec(1000000))


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
A, B = map(int, input().split())
while True:
  B += 1
print(B)

Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import random
A, B = map(int, input().split())
X = [[0] * (10**4) for _ in range(10**5)]
print(A)


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Time Limit Exceeded):
import random
A, B = map(int, input().split())
X = [[0] * (10**4) for _ in range(10**5)]
print(A)

Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import random
A, B = map(int, input().split())
r = random.randrange(5)
if r == 0:
    print(1/0)
elif r == 1:
    print(A+B)
elif r == 2:
    while True:
        B += 1
elif r == 3:
    print(999)
else:
    X = [[0] * 10**4 for _ in range(10**5)]

Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import random
A, B = map(int, input().split())
r = random.randrange(5)
if r == 0:
    print(1/0)
elif r == 1:
    print(A+B)
elif r == 2:
    while True:
        B += 1
else:
    X = [0] * (10**9)


Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import random
A, B = map(int, input().split())
r = random.randrange(5)
if r == 0:
    print(1/0)
elif r == 1:
    print(A+B)
elif r == 2:
    while True:
        B += 1
else:
    X = []
    for i in range(10**6):
	    X += [a for a in range(1000)]

Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))

Buggy python submission (verdict: Runtime Error):
import random
A, B = map(int, input().split())
r = random.randrange(5)
if r == 0:
    print(1/0)
elif r == 1:
    print(A+B)
elif r == 2:
    while True:
        B += 1
elif r == 3:
    print(999)
else:
    X = [0] * 10**9

Fixed submission:
A, B = map(int, input().split())
print(max(A*2-1,A+B,B*2-1))