Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
from math import *
n,*a=map(int,open(0).read().split())
b=1
for i in a:b*=i//gcd(b,i)
print(sum(b//i for i in a)%(10**9+7)) 

Fixed submission:
from fractions import *
n,*a=map(int,open(0).read().split())
b=1
for i in a:b*=i//gcd(b,i)
print(sum(b//i for i in a)%(10**9+7))

Buggy python submission (verdict: Runtime Error):
import math as m
n=int(input())
a=input().split()
b=1
for i in a:
    i=int(i)
    b*=i//m.gcd(b,i)
    
print(sum(b//int(i) for i in a)%(10**9+7)) 


Fixed submission:
from fractions import *
n,*a=map(int,open(0).read().split())
b=1
for i in a:b*=i//gcd(b,i)
print(sum(b//i for i in a)%(10**9+7))

Buggy python submission (verdict: Runtime Error):
import math as m
n=int(input())
a=input().split()
b=1
for i in a:
    i=int(i)
    b*=i//m.gcd(b,i)
    
print(sum(b//int(i) for i in a)%(10**9+7)) 

Fixed submission:
from fractions import *
n,*a=map(int,open(0).read().split())
b=1
for i in a:b*=i//gcd(b,i)
print(sum(b//i for i in a)%(10**9+7))
Buggy python submission (verdict: Runtime Error):
N = int(input())
num = list(map(int,input().split()))
count = 0
for _ in range(N):
  if min(num[:_+1]) == num[_]:
    count += 1

print(count)

Fixed submission:
a,b = map(int,input().split())
if a == b:
  print('Yes')
else:
  print('No')
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
num = list(map(int,input().split()))
count = 0
for _ in range(N):
  if min(num[:_+1]) == num[_]:
    count += 1

print(count)
  

Fixed submission:
N = int(input())
num = list(map(int,input().split()))
count = 0
m = num[0]
for _ in range(N):
  if m >= num[_]:
    m = num[_]
    count += 1

print(count)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
num = list(map(int,input().split()))
count = 0
for _ in range(N):
  if min(num[:_+1]) == num[_]:
    count += 1

print(count)

Fixed submission:
N = int(input())
num = list(map(int,input().split()))
count = 0
m = num[0]
for _ in range(N):
  if m >= num[_]:
    m = num[_]
    count += 1

print(count)
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
sum = 0
for i in range(1,N):
  sum += i

print(sum)

Fixed submission:
N = int(input()) - 1
sum = 0

if N % 2 == 0:
  sum = (1+N)*int(N/2)
else:
  sum = (1+N)*int((N-1)/2) + int((N+1)/2)

print(int(sum))

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
sum = 0
for i in range(1,N):
  sum += i

print(sum)

Fixed submission:
N = int(input()) - 1
sum = 0

if N % 2 == 0:
  sum = (1+N)*int(N/2)
else:
  sum = (1+N)*int((N-1)/2) + int((N+1)/2)

print(int(sum))
Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())

min = 1001
for ii in ranga(N):
  c,t = map(int,input().split())
  if t <= T:
    min = c if min > c:
   
if t == 1001:
  print('TLE')
else:
  print(min)


Fixed submission:
N,T = map(int,input().split())

min = 1001
for ii in range(N):
  c,t = map(int,input().split())
  if t <= T and min > c:
    min = c
   
if min == 1001:
  print('TLE')
else:
  print(min)

Buggy python submission (verdict: Runtime Error):
N,T = map(int,input().split())

min = 1001
for ii in ranga(N):
  c,t = map(int,input().split())
  if t <= T:
    min = t if min > t
   
if t == 1001:
  print('TLE')
else:
  print(min)

Fixed submission:
N,T = map(int,input().split())

min = 1001
for ii in range(N):
  c,t = map(int,input().split())
  if t <= T and min > c:
    min = c
   
if min == 1001:
  print('TLE')
else:
  print(min)
Buggy python submission (verdict: Runtime Error):
a,*b,c = intput()
print(a+str(len(b))+c)

Fixed submission:
a = input()
print(a[0],len(a)-2,a[-1],sep='')
Buggy python submission (verdict: Runtime Error):
#coding: utf-8
 
s = input().split()
if s[0]>s[1]:
  for i in range(s[0]):
  	print(str(s[1]),end='')
else:
  for i in range(s[1]):
  	print(str(s[0]),end='')

Fixed submission:
#coding: utf-8
 
s = input().split()
if s[0]==s[1]:
  print('Yes')
else:
  print('No')
Buggy python submission (verdict: Runtime Error):
# coding: utf-8

weather = input()
if weather == "Sunny":
    print("Cloudy")
elif wether == "Cloudy":
    print("Rainy")
elif wether == "Rainy":
    print("Sunny")


Fixed submission:
# coding: utf-8

weather = input()
if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

weather = input("Today's weather:")
if weather == "Sunny":
    print("Cloudy")
elif wether == "Cloudy":
    print("Rainy")
elif wether == "Rainy":
    print("Sunny")


Fixed submission:
# coding: utf-8

weather = input()
if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")

Buggy python submission (verdict: Runtime Error):
# coding: utf-8

wether = input("Today's weather:")
if weather == "Sunny":
    print("Cloudy")
elif wether == "Cloudy":
    print("Rainy")
elif wether == "Rainy":
    print("Sunny")


Fixed submission:
# coding: utf-8

weather = input()
if weather == "Sunny":
    print("Cloudy")
elif weather == "Cloudy":
    print("Rainy")
elif weather == "Rainy":
    print("Sunny")
Buggy python submission (verdict: Runtime Error):
a=list(map(lambda x:x,input(),split()))
if(a[1]>a[0]):
  print(a[0]*int(a[1]))
else:
  print(a[1]*int(a[0]))

Fixed submission:
a=list(map(lambda x:x,input().split()))
if(a[0]==a[1]):
       print("Yes")
else:
       print("No")

Buggy python submission (verdict: Runtime Error):
a=list(map(lambda x:x,input().split())
if(a[0]==a[1]):
       print("Yes")
else:
       print("No")

Fixed submission:
a=list(map(lambda x:x,input().split()))
if(a[0]==a[1]):
       print("Yes")
else:
       print("No")

Buggy python submission (verdict: Runtime Error):
a=list(map(a,input().split())
if(a[0]==a[1]):
       print("Yes")
else:
       print("No")

Fixed submission:
a=list(map(lambda x:x,input().split()))
if(a[0]==a[1]):
       print("Yes")
else:
       print("No")
Buggy python submission (verdict: Runtime Error):
a=list(map(lambda x:x,input().split()))
if(a[1]>a[0]):
  print(str(a[0])*a[1])
else:
  print(str(a[1])*a[0])

Fixed submission:
a=list(map(lambda x:x,input().split()))
if(a[1]>a[0]):
  print(a[0]*int(a[1]))
else:
  print(a[1]*int(a[0]))

Buggy python submission (verdict: Runtime Error):
a=list(map(lambda x:x,input(),split()))
if(a[1]>a[0]):
  print(str(a[0])*a[1])
else:
  print(str(a[1])*a[0])

Fixed submission:
a=list(map(lambda x:x,input().split()))
if(a[1]>a[0]):
  print(a[0]*int(a[1]))
else:
  print(a[1]*int(a[0]))
Buggy python submission (verdict: Runtime Error):
Q = 6-A-B;
print(Q);

Fixed submission:
A = int(input())
B = int(input())
Q = 6-A-B

print(Q)

Buggy python submission (verdict: Runtime Error):
Q = 6 - A -B
print(Q)

Fixed submission:
A = int(input())
B = int(input())
Q = 6-A-B

print(Q)

Buggy python submission (verdict: Runtime Error):
Q = 6-A-B
print Q

Fixed submission:
A = int(input())
B = int(input())
Q = 6-A-B

print(Q)
Buggy python submission (verdict: Runtime Error):
N = int(input())
S,T= input().spulit()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
T = input()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
T = input()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
T = input()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = int(input())
S = input()
T = input()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = input()
S = input()
T = input()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = input()
S = input()
T = input()
 
Q = ""
for i in range (N-1):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
S = input()
T = input()
N = input()

Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)

Buggy python submission (verdict: Runtime Error):
N = input()
S = input()
T = input()

Q = ""
for i in range (N-1):
  Q = Q + S[i] + T[i]
  
 print(Q)

Fixed submission:
N = int(input())
S,T = input().split()
 
Q = ""
for i in range (N):
  Q = Q + S[i] + T[i]
  
print(Q)
Buggy python submission (verdict: Runtime Error):
import math
A = list(map(int, input().split()))
a = A[0]
b = A[1]

ans = a*b/math.gcd(a,b)
print(ans)

Fixed submission:
A = list(map(int, input().split()))
a = A[0]
b = A[1]
 
def gcd(a,b):
  while b!=0:
    a,b=b,a%b
  return a
 
ans = a*b/gcd(a,b)
ans = int(ans)
print(ans)
Buggy python submission (verdict: Runtime Error):
N = int(input())
A = list(map(int, input().split()))

c = 0
e = len(A)
for i in range(e - ):
  d = 1
  if A[i] == d:
    d = d + 1
  else:
    c = c + 1

if c == e:
    print(-1)
else:
    print(c)

Fixed submission:
N = int(input())
A = list(map(int, input().split()))

c = 0
e = len(A)
d = 1
for i in range(e):
  if A[i] == d:
    d = d + 1
  else:
    c = c + 1

if c == e:
    print(-1)
else:
    print(c)
Buggy python submission (verdict: Runtime Error):
S = input()

L = S.split("/")

L[0] = "2018"

print(L[0]+"/"L[1]+"/"L[2])

Fixed submission:
S = input()

L = S.split("/")

L[0] = "2018"

print(L[0]+"/"+L[1]+"/"+L[2])

Buggy python submission (verdict: Runtime Error):
S = input()

L = S.split(/)

L[0] = "2018"

print(L[0]+L[1]+L[2])

Fixed submission:
S = input()

L = S.split("/")

L[0] = "2018"

print(L[0]+"/"+L[1]+"/"+L[2])
Buggy python submission (verdict: Runtime Error):
s = list(input())
 
a = 0
 
if s[0] = 1:
  a + 1
 
if s[1] = 1:
  a + 1
 
if s[2] = 1:
  a + 1
  
print(a)

Fixed submission:
s = list(input())
 
a = 0
 
if s[0] == "1":
  a = a + 1
 
if s[1] == "1":
  a = a + 1
 
if s[2] == "1":
  a = a + 1
  
print(a)

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())


d = 0

if a = 1:
  d + 1

if b = 1:
  d + 1
  
if c = 1:
  d + 1
  
print(d)

Fixed submission:
s = list(input())
 
a = 0
 
if s[0] == "1":
  a = a + 1
 
if s[1] == "1":
  a = a + 1
 
if s[2] == "1":
  a = a + 1
  
print(a)
Buggy python submission (verdict: Runtime Error):
ソースコード 

Copy
Copy
def divisible(n):
    ans = 0
    while n%2 == 0:
        n /=2
        ans +=1
    return ans
 
N = int(input())
 
b = 0
 
for i in range(N):
    if(divisible(i) > b):
      b = divisible(i)
      ans = i
    
print(max(ans))

Fixed submission:
def divisible(n):
 ans = 0
 while n%2 == 0:
  n /= 2
  ans += 1
 return ans
 
N = int(input())
 
b = 0

c = 1
 
for i in range(1,N+1):
    if(divisible(i) > b):
      b = divisible(i)
      c = i
    
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
def divisible(n):
    ans = 0
    while n%2 == 0:
        n /=2
        ans +=1
    return ans

N = int(input())

b = 0

for i in range(N):
    if(divisible(i) > b):
      b = divisible(i)
      ans = i
    
print(max(ans))

Fixed submission:
def divisible(n):
 ans = 0
 while n%2 == 0:
  n /= 2
  ans += 1
 return ans
 
N = int(input())
 
b = 0

c = 1
 
for i in range(1,N+1):
    if(divisible(i) > b):
      b = divisible(i)
      c = i
    
print(c)

Buggy python submission (verdict: Time Limit Exceeded):
def divisible(n):
    ans = 0
    while n%2 == 0:
        n /=2
        ans +=1
    return ans

N = int(input())

a = []

for i in range(N):
    a.append(divisible(i))
    
print(max(a))

Fixed submission:
def divisible(n):
 ans = 0
 while n%2 == 0:
  n /= 2
  ans += 1
 return ans
 
N = int(input())
 
b = 0

c = 1
 
for i in range(1,N+1):
    if(divisible(i) > b):
      b = divisible(i)
      c = i
    
print(c)
Buggy python submission (verdict: Runtime Error):
r,g,b = int(input().split())
 
a = 100*r + 10*g + b
 
if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)

Fixed submission:
r,g,b = map(int,input().split())
 
a = 100*r + 10*g + b
 
if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)

Buggy python submission (verdict: Runtime Error):
r,g,b = int(input().split)
 
a = 100*r + 10*g + b
 
if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)

Fixed submission:
r,g,b = map(int,input().split())
 
a = 100*r + 10*g + b
 
if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)

Buggy python submission (verdict: Runtime Error):
r,g,b = int(input())

a = 100*r + 10*g + b

if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)

Fixed submission:
r,g,b = map(int,input().split())
 
a = 100*r + 10*g + b
 
if a%4 == 0:
  m = "YES"
else:
  m = "NO"
  
print(m)
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = str(inout())

ans = 0

for i in range(n-2):
    if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
        ans += 1
    else:
        continue
      
print(ans)


Fixed submission:
n = int(input())
s = str(input())
 
ans = 0
 
for i in range(n-2):
    if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
        ans += 1
    else:
        continue
      
print(ans)

Buggy python submission (verdict: Runtime Error):
n = inr(input())
s = str(inout())

ans = 0

for i in range(n):
	if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
      ans += 1
    else:
      continue
      
print(ans)

Fixed submission:
n = int(input())
s = str(input())
 
ans = 0
 
for i in range(n-2):
    if s[i] == "A" and s[i+1] == "B" and s[i+2] == "C":
        ans += 1
    else:
        continue
      
print(ans)
Buggy python submission (verdict: Runtime Error):
a, b, k = map(int,input().split())
if a <= k:
  print(0,(b - k + a), sep=" ")
elif a+b => k:
  print((a-k),b,sep=" ")
else:
  print(0, 0,sep+" ")

Fixed submission:
a, b, k = map(int,input().split())
if a >= k:
  print(a-k, b)
elif k-a <= b:
  print(0, b-k+a)
else:
  print(0, 0)

Buggy python submission (verdict: Runtime Error):
a, b, k = map(int,input().split())
if a < k:
  print(0,(b - k + a), sep=" ")
elif a > k:
  print((a-k),b,sep=" ")
else:
  print(0, 0,sep+" ")

Fixed submission:
a, b, k = map(int,input().split())
if a >= k:
  print(a-k, b)
elif k-a <= b:
  print(0, b-k+a)
else:
  print(0, 0)
Buggy python submission (verdict: Runtime Error):
from fractions import gcd


a, b = map(int,input().split())

def lcm(a, b):
    y = a*b / math.gcd(a, b)
    return int(y)

print(lcm(a, b))

Fixed submission:
from fractions import gcd
a, b = map(int,input().split())

def lcm(a, b):
  return a * b // gcd (a, b)

print(lcm(a, b))

Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())

def lcm(a, b):
    y = a*b / math.gcd(a, b)
    return int(y)

print(lcm(a,b))

Fixed submission:
from fractions import gcd
a, b = map(int,input().split())

def lcm(a, b):
  return a * b // gcd (a, b)

print(lcm(a, b))

Buggy python submission (verdict: Runtime Error):
import math
a, b = map(int,input().split())

def lcm(a, b):
    y = a*b / math.gcd(a, b)
    return int(y)

print(lcm(a,b))

Fixed submission:
from fractions import gcd
a, b = map(int,input().split())

def lcm(a, b):
  return a * b // gcd (a, b)

print(lcm(a, b))
Buggy python submission (verdict: Runtime Error):
a1 = int(input())
a2 = int(input())
a3 = int(input())

x = a1 + a2 + a3

if x >= 22 :
  print("bust")
  
else :
  print("win")


Fixed submission:
a1, a2, a3 = map(int,input().split())
 
x = a1 + a2 + a3
 
if x >= 22 :
  print("bust")
  
else :
  print("win")

Buggy python submission (verdict: Runtime Error):
a1 = int(input())
a2 - int(input())
a3 = int(input())

x = a1 + a2 + a3

if x >= 22 :
  print("bust")
  
else :
  print("win")

Fixed submission:
a1, a2, a3 = map(int,input().split())
 
x = a1 + a2 + a3
 
if x >= 22 :
  print("bust")
  
else :
  print("win")
Buggy python submission (verdict: Runtime Error):
n = int(input())
print(n - n //2) / n

Fixed submission:
n = int(input())
print((n - n //2) / n)
Buggy python submission (verdict: Runtime Error):
S = input()

if s == "Sunny":
  print("Cloudy")
elif s == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Fixed submission:
s = input()
 
if s == "Sunny":
  print("Cloudy")
elif s == "Cloudy":
  print("Rainy")
else:
  print("Sunny")
Buggy python submission (verdict: Runtime Error):
s = input()
t = input()

count = 0

for i in range(3)

if s[i] == t[i]:
  count += 1

print(count)

Fixed submission:
s = input()
t = input()

count = 0

for i in range(3):
  if s[i] == t[i]:
    count += 1

print(count)
Buggy python submission (verdict: Runtime Error):
s = list(input())
if s[0] == s[1] or s[1] == s[2] or s[2] = s[3]:
  print("Good")
else:
  print("Bad")

Fixed submission:
s = list(input())
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
  print("Bad")
else:
  print("Good")
Buggy python submission (verdict: Runtime Error):
n, k = map(int,input(),split())
s = input()
print(s[k].lower())

Fixed submission:
n, k = map(int,input().split())
s = list(input())
s[k-1] = s[k-1].lower()
print("".join(s))

Buggy python submission (verdict: Runtime Error):
n, k = map(int,input(),split())
print(n[k].lower())

Fixed submission:
n, k = map(int,input().split())
s = list(input())
s[k-1] = s[k-1].lower()
print("".join(s))
Buggy python submission (verdict: Runtime Error):
x = [int(input()) for i range(5)]
k = int(input())

for i in range(4):
  for _ in range(1,5):
    if x[i] - x[_] > k:
      print(":(")
    exit()
else:
  print("Yey!")

Fixed submission:
x = [int(input()) for i in range(5)]
k = int(input())

for i in range(4):
  for _ in range(1,5):
    if abs(x[i] - x[_]) > k:
      print(":(")
      exit()
print("Yay!")

Buggy python submission (verdict: Runtime Error):
x = [int(input()) for i range(5)]
k = int(input())

for i in range(4):
  for _ in range(1,5):
    if x[i] - x[_] < k:
      print("Yey!")
    else:
      print(":(")

Fixed submission:
x = [int(input()) for i in range(5)]
k = int(input())

for i in range(4):
  for _ in range(1,5):
    if abs(x[i] - x[_]) > k:
      print(":(")
      exit()
print("Yay!")
Buggy python submission (verdict: Runtime Error):
import math
n = int(input())
for i in range(5):
  l = int(input())
print(math.ceil(n/min(l))+4)

Fixed submission:
import math
n = int(input())
l=[int(input()) for i in range(5)]
print(math.ceil(n/min(l))+4)

Buggy python submission (verdict: Runtime Error):
import math
n = int(input())
for i in range(n):
  l = int(input())
print(math.ceil(n/min(l))+4)

Fixed submission:
import math
n = int(input())
l=[int(input()) for i in range(5)]
print(math.ceil(n/min(l))+4)
Buggy python submission (verdict: Runtime Error):
b = int(input())
 
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")

Fixed submission:
b = input()
 
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")

Buggy python submission (verdict: Runtime Error):
ソースコード 

Copy
Copy
b = int(input())
 
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")

Fixed submission:
b = input()
 
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")

Buggy python submission (verdict: Runtime Error):
b = int(input())

if b == A:
  print("T")
elif b == T:
  print("A")
elif b == G:
  print("C")
else:
  print("G")

Fixed submission:
b = input()
 
if b == "A":
  print("T")
elif b == "T":
  print("A")
elif b == "G":
  print("C")
else:
  print("G")
Buggy python submission (verdict: Runtime Error):
s = input()
ans = 0
for S in s:
  if S == "A":
    ans += 1
  elif S == "G":
    ans += 1
  elif S == "T":
    ans += 1
  elif S == "C":
    ans += 1
  else:
    ans = 0
    
print(ans)
s = input()
ans = 0
for S in s:
  if S == "A":
    ans += 1
  elif S == "G":
    ans += 1
  elif S == "T":
    ans += 1
  elif S == "C":
    ans += 1
  else:
    ans = 0
    
print(ans)


Fixed submission:
s = input()
ans = 0
m = 0
for S in s:
  if S in "A":
    ans += 1
  elif S in "G":
    ans += 1
  elif S in "T":
    ans += 1
  elif S in "C":
    ans += 1
  else:
    ans = 0
  m = max(m,ans)
print(m)

Buggy python submission (verdict: Runtime Error):
s = input()
ans = 0
for s in S:
  if s == "A":
    ans += 1
  elif s == "G":
    ans += 1
  elif s == "T":
    ans += 1
  elif s == "C":
    ans += 1
  else:
    ans = 0
    
print(ans)

Fixed submission:
s = input()
ans = 0
m = 0
for S in s:
  if S in "A":
    ans += 1
  elif S in "G":
    ans += 1
  elif S in "T":
    ans += 1
  elif S in "C":
    ans += 1
  else:
    ans = 0
  m = max(m,ans)
print(m)
Buggy python submission (verdict: Runtime Error):
s = input()
if s[5::6] <= 04 and s[8::9] <= 30:
  print("Heisei")
else:
  print("TBD")

Fixed submission:
s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Buggy python submission (verdict: Runtime Error):
s = int(input())
if a[5]+a[6] > 4:
  print("Heisei")
else:
  print("TBD")


Fixed submission:
s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")

Buggy python submission (verdict: Runtime Error):
s = input()
if a[5]+a[6] > 4:
  print("Heisei")
else:
  print("TBD")

Fixed submission:
s = input()
if s <= "2019/04/30":
  print("Heisei")
else:
  print("TBD")
Buggy python submission (verdict: Runtime Error):
s = int(input())
l = []

while(s not in l):
  l.aplend(s)
  
  if s%2 == 0:
    s//=2
  else:
    s=3*s+1
print(len(l)=1)

Fixed submission:
s = int(input())
l = []

while(s not in l):
  l.append(s)
  
  if s%2 == 0:
    s//=2
  else:
    s=3*s+1
print(len(l)+1)
Buggy python submission (verdict: Runtime Error):
x,y = (int, input().split())
print(x+y//2)

Fixed submission:
x,y = map(int, input().split())
print(x+y//2)
Buggy python submission (verdict: Runtime Error):
s = int(input())
print(s.replace("1", "9").replace("9", "1"))

Fixed submission:
n = list(input())
ans = ""

for i in n:
  if i == "1":
    ans += "9"
  else:
    ans += "1"
    
print(ans)
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
c for i in range(3)

if (a+b)+ i == 0:
  print("No")
else:
  print("Yes")

Fixed submission:
a, b = map(int,input().split())
if (a == 1 and b == 2) or (a == 2 and b == 1) or (a == 2 and b == 2) or (a == 3 and b == 2) or (a == 2 and b == 3):
  print("No")
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
n i = map(int,input().split())
print((n - i) + 1)


Fixed submission:
n, i = map(int,input().split())
print((n - i) + 1)

Buggy python submission (verdict: Runtime Error):
n i = map(int,input().split())
print(n - i + 1)

Fixed submission:
n, i = map(int,input().split())
print((n - i) + 1)
Buggy python submission (verdict: Runtime Error):
n = int(input())
print((n*2) if n%2 == o else n)

Fixed submission:
n = int(input())
print(n if n%2 == 0 else n*2)
Buggy python submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))
print(abs(min(a)-max(a))

Fixed submission:
n = int(input())
a = list(map(int,input().split()))
print(abs(min(a)-max(a)))
Buggy python submission (verdict: Runtime Error):
a, b, c, d = map(int,input().split())
if abs(a - b) =< d or abs(b - c) =< d:
  print("Yes")
else:
  print("No")


Fixed submission:
a, b, c, d = map(int,input().split())
if abs(a - b) <= d and abs(b - c) <= d or abs(a - c) <= d:
  print("Yes")
  
else:
  print("No")