Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p02700 (python)

Fixed submission:
try:
  a, b, c, d = map(int, input().split())
  while a > 0 and c > 0:
      c -= b
      if c>0:
          a -=d
          if a<=0:
          	print("No")
      else:
          print("Yes")
    
except:
  pass

Buggy submission (verdict: Runtime Error):
a, b, c, d = map(int, input().split())
while a > 0 and c > 0:
    c -= b
    if c>0:
        a -=d
        if a<=0:
        print("no")
    else:
        print("Yes")
Problem p02713 (python)

Fixed submission:
import math
from functools import reduce
from itertools import product

def gcd(*numbers):
    return reduce(math.gcd, numbers)

n = int(input())

l = product(range(1, 1+n), repeat=3)

print(sum([gcd(*i) for i in l]))

Buggy submission (verdict: Runtime Error):
import math
from functools import reduce
from itertools import product
import numpy

def gcd(*numbers):
    return reduce(math.gcd, numbers)

n = int(input())

l = product(range(1, 1+n), repeat=3)

print(numpy.cumsum([gcd(*i) for i in l])[-1])
Problem p02786 (python)

Fixed submission:
h = int(input())

result = 0
i = 1
while h > 0:
    h = h // 2
    result = result + i
    i *= 2

print(result)

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

result = 0
i = 1
while h > 0:
    h = h // 2
    result = result + i
    i *= 2

print(result)
Problem p02706 (python)

Fixed submission:
n,m = map(int,input().split( ))

c=list(map(int,input().split( )))


total = 0

for i in range(m):
    total += c[i]

if((n-total) >= 0):
    print(n-total)
else:
    print(-1)

Buggy submission (verdict: Runtime Error):
n,m = map(int,input().split())

c=list(map(int,input().split()))

total = 0

for i in range m:
    total += c[i]

if((n-total) >= 0):
    print(n-total)
else:
    print(-1)
Problem p02705 (python)

Fixed submission:
import math
r = int(input())
print(2*r*math.pi)

Buggy submission (verdict: Runtime Error):
N = int(input())
A = list(map(int,input().split()))
for i in range(1,N+1):
    count = 0
    B =[]
    for j in range(len(A)):
        if A[j]==i:
            count =+ 1
        else:
            B.append(A[j])
    print(count)
    A = B
Problem p03455 (python)

Fixed submission:
a,b = map(int,input().split())
if a%2==0 or b%2==0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
if a%2==0 or b%==0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
a, b = map(int,input().split())
if a%2==0 or b%2==0:
  print("even")
 else:
  print("odd")
Problem p03456 (python)

Fixed submission:
import math
s = int(input().replace(' ',''))
if int(math.sqrt(s))**2 == s:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
s = int(input().replace(' ',''))
if s**0.5.is_integer:
    print("Yes")
else:
    print("No")
Problem p02713 (python)

Fixed submission:
from math import gcd

k=int(input())
ans=0
for i in range(1,k+1):
    for j in range(1,k+1):
        for l in range(1,k+1):
            ans+=gcd(gcd(i,j), l)
            #print(gcd(i,j,l))
print(ans)

Buggy submission (verdict: Runtime Error):
from math import gcd

k=int(input())
ans=0
for i in range(1,k+1):
    for j in range(1,k+1):
        for l in range(1,k+1):
            ans+=gcd(math.gcd(i,j), l)
            #print(gcd(i,j,l))
print(ans)
Problem p02720 (python)

Fixed submission:
k=int(input())
a=[i for i in range(1,10)]

while True:
    #るんるん数の候補を、桁数ごとに積み上げます。まず１桁
    if k<=len(a):
        print(a[k-1])
        break
    """
    1桁に成果がなければ、kから１桁のlen(るんるん数リスト)を引いて、
    ２桁のリストを作ります。作り方は、元のるんるんリストのそれぞれの数を１０倍して、
    その１０の位と同じか隣接する値を加えたものをappend.
    以下同様
    """
    k-=len(a)
    old=[]
    old, a=a, old
    for x in old:
        for i in range(-1,2):
            d=x%10+i
            if d<0 or d>9:
                continue
            new_x=x*10+d
            a.append(new_x)

Buggy submission (verdict: Runtime Error):
k=int(input())
a=[i for i in range(10)]

while True:
    #るんるん数の候補を、桁数ごとに積み上げます。まず１桁
    if k<=len(a):
        print(a[k-1])
        break
    """
    1桁に成果がなければ、kから１桁のlen(るんるん数リスト)を引いて、
    ２桁のリストを作ります。作り方は、元のるんるんリストのそれぞれの数を１０倍して、
    その１０の位と同じか隣接する値を加えたものをappend.
    以下同様
    """
    k-=len(a)
    old=[]
    old, a=a, old
    for x in old:
        for i in range(-1,2):
            d=x%10+d
            if d<0 or d>9:
                continue
            new_x=x*10+d
            a.append(new_x)
Problem p02918 (python)

Fixed submission:
n,k=map(int,input().split())
s=[i for i in input()]
num=0
for i in range(len(s)-1):
    if s[i]==s[i+1]:
        num+=1
print(min(n-1,num+2*k))

Buggy submission (verdict: Runtime Error):
n,k=map(int,input())
s=[i for i in range input()]
num=0
for i in range(len(s)):
    if s[i]==s[i+1]:
        num+=1
print(min(n-1,num+2*k))
Problem p03607 (python)

Fixed submission:
n=int(input())
a=[input() for _ in range(n)]
l={}
for i in a:
    if i in l:
        del l[i]
    else:
        l[i]=0
print(len(l))

Buggy submission (verdict: Runtime Error):
n=int(input())
a=[input() for _ in range(n)]
l={}
for i in range(n):
    if a[i] in l:
        l.remove(a[i])
    else:
        l.append(a[i])
#print(l)
print(len(l))
Problem p03633 (python)

Fixed submission:
from functools import reduce
from fractions import gcd
n=int(input())
a=[int(input()) for i in range(n)]
def lcm_base(x, y):
    return (x * y) // gcd(x, y)

def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)
print(lcm_list(a))

Buggy submission (verdict: Runtime Error):
import math
from functools import reduce
n=int(input())
a=[int(input()) for i in range(n)]
def lcm_base(x, y):
    return (x * y) // math.gcd(x, y)

def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)
print(lcm_list(a))
Problem p03998 (python)

Fixed submission:
import sys
def f(x):
    return x[1:],x[0]
a=input()
b=input()
c=input()
y='a'
while 1:
    if y=='a':
        if a=='':
            print('A')
            sys.exit()
        else:
            a,y=f(a)
    if y=='b':
        if b=='':
            print('B')
            sys.exit()
        else:
            b,y=f(b)
    if y=='c':
        if c=='':
            print('C')
            sys.exit()
        else:
            c,y=f(c)

Buggy submission (verdict: Runtime Error):
def f(x):
    return x[1:],x[0]
x=input()
y=input()
z=input()
k='a'
while 1:
    if k=='a':
        if x=='':
            print('A')
            break
        else:
            x,k=f(x)
    if k=='b':
        if y=='':
            print('B')
            break
        else:
            z,k=f(z)
    if k=='c':
        if z=='':
            print('C')
            break
        else:
            z,k=f(z)

Buggy submission (verdict: Runtime Error):
import sys
def f(x):
    return x[1:],x[0]
x=input()
y=input()
z=input()
k='a'
while 1:
    if k=='a':
        if x=='':
            print('A')
            sys.exit()
        else:
            x,k=f(x)
    if k=='b':
        if y=='':
            print('B')
            sys.exit()
        else:
            z,k=f(z)
    if k=='c':
        if z=='':
            print('C')
            sys.exit()
        else:
            z,k=f(z)
Problem p02705 (python)

Fixed submission:
import math

rad = input()
rad = int(rad)
print(2 * math.pi * rad)

Buggy submission (verdict: Runtime Error):
a,b,c = int(input().split())
print(a,b,c)
Problem p02706 (python)

Fixed submission:
m,n = map(int,input().split())
l = list(map(int,input().split()))
s = 0
for i in range(n):
  s += l[i]
print(max(m-s,-1))

Buggy submission (verdict: Runtime Error):
 = map(int,input().split())
l = list(map(int,input().split()))
s = 0
for i in range(n):
  s += l[i]
print(max(m-s,-1))
Problem p02717 (python)

Fixed submission:
a,b,c = map(int, input().split())
a,b,c = c,a,b
print(a,b,c)

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

Buggy submission (verdict: Runtime Error):
a,b,c = int(input().split())
aa = b
bb = a
cc = aa
aaa = c
print(aaa, bb, cc)
Problem p03047 (python)

Fixed submission:
n,k = [int(i) for i in input().split()]
print(n-k+1)

Buggy submission (verdict: Runtime Error):
n,k = [int() for i in input().split]
print(n-k+1)
Problem p03067 (python)

Fixed submission:
A,B,C = [int(i) for i in input().split()]
if 0 <= A and B and C <=100:
    if A < C < B:
        print("Yes")
    elif B < C < A:
        print("Yes")
    else:
        print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())
S = input()
c = 0
A = int(S.count("."))
B = N - A
if len(S) == N:
    if 1 <= N <= 2 * 10 ** 5:
        if "." in S:
            if "#" in S:
                S.replace(".#","ee")
                D = S.find("e")
                C = N - D + 1                
                print(N - C + B + 1)
            else:
                print(0)
        else:
            print(0)
Problem p03323 (python)

Fixed submission:
A,B = [int(i) for i in input().split()]
if A > 8:
    print(':(')
elif B > 8:
    print(':(')
else:
    print('Yay!')

Buggy submission (verdict: Runtime Error):
A,B = [int(i) for i in input().split()]
if A <= 8:
    print('Yay!')
    if B <= 8:
        print('Yay!')
    elif:
        print(':(')
else:
    print(':(')

Buggy submission (verdict: Runtime Error):
A,B = [int(i) for i in input().split()]
if A <＝ 8:
    print('Yay!')
elif B <＝ 8:
    print('Yay!')
else:
    print(':(')
Problem p03416 (python)

Fixed submission:
A,B = [int(i) for i in input().split()]
c = 0
if 1 <= A <= 99999:
    if 1 <= B <= 99999:
        for p in range(A, B + 1):
            if p // 10000 == p % 10 and p // 1000 - 10 * ( p // 10000 ) == p % 100 // 10:
                c += 1
            elif p // 100 == p % 10:
                c += 1            
print(c)

Buggy submission (verdict: Runtime Error):
A,B = [int(i) for i in input().split()]
c = 0
if 1 <= A <= 99999:
    if 1 <= B <= 99999:
        for p in range(A,B):
            if p // 10000 == i % 10 and p // 1000 == p % 100 - p % 10:
                c += 1
            elif p // 100 == i % 10:
                c += 1
print(c)
Problem p03423 (python)

Fixed submission:
N = int(input())
print(N//3)

Buggy submission (verdict: Runtime Error):
N = iot(input())
print(N//3)
Problem p03635 (python)

Fixed submission:
n,m = [int(i) for i in input().split()]
if 2 <= n and m <= 100:
    a = int((n - 1)*(m - 1))
    print(a)

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
n, m = [int(i) for i in input().split()]
if 2 <= n and m <= 100:
    print(int((n - 1)(m - 1)))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
n, m = [int(i) for i in input().split()]
if 2 <= n and m <= 100:
    print((n-1)(m-1))
Problem p03759 (python)

Fixed submission:
# -*- coding: utf-8 -*-
a,b,c = [int(i) for i in input().split()]
if 1 <= a and b and c <= 100:
    if b - a == c - b:
        print("YES")
    else:
        print("NO")

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a,b,c = [int(i) for i in input().split()]
if 1 <= a and b and c m<= 100:
    if b - a == c - b:
        print("YES")
    else:
        print("NO")
Problem p02700 (python)

Fixed submission:
from sys import stdin
A, B, C,D = [int(x) for x in stdin.readline().rstrip().split()]
while True:
  C = C-B
  if C<=0:
    print("Yes")
    break
  A = A-D
  if A<=0:
    print("No")
    break

Buggy submission (verdict: Runtime Error):
A,B,C,D = map(int,input().split())

while check:
	C = C - B
    if C<=0:
      print("Yes")
    A = A - D
    if A<=0:
      print("No")
Problem p02720 (python)

Fixed submission:
from collections import deque

q=deque()

N=int(input())

for i in range(1,10):
  q.append(i)

for _ in range(N-1):
  x=q.popleft()
  if x%10!=0:
    q.append(10*x+(x%10-1))
  q.append(10*x+(x%10))
  if x%10!=9:
    q.append(10*x+(x%10+1))

print(q.popleft())

Buggy submission (verdict: Runtime Error):
from collections import deque

q=deque()

N=int(input())

for i in range(1,10):
  q.append(i)

for _ in range(N-1):
  x=q.popleft()
  if x%10!=0:
    q.append(10*x+(x%10)-1)
  q.append(10*x+(x%10))
  if x%10!=9:
    q.append(10*x+(x%10)+1)

print(q.poplefr())
Problem p03005 (python)

Fixed submission:
s = list(map(int, input().split()))
if (s[1] != 1):
    ans = s[0] - s[1]
    print(ans)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
s = list(map(int, input().split()))
if (s[1] == 1:
    ans = s[0] - s[1]
    print(ans)
else:
    print(0)
Problem p02741 (python)

Fixed submission:
a=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
b=int(input())
print(a[b-1])

Buggy submission (verdict: Runtime Error):
from decimal import *
import math
h=input().split()
a,b,c=int(h[0]),int(h[1]),int(h[2])
e=Decimal(math.sqrt(a))
f=Decimal(math.sqrt(b))
g=Decimal(math.sqrt(c))
if(e+f==g):
  print('No')
elif(e+f>g):
  print('No')
else:
  print('Yes')
Problem p02772 (python)

Fixed submission:
N=int(input())
list=list(map(int,input().split()))
flg=0
for i in(list):
  if(i%2==0):
    if(i%3!=0 and i%5!=0):
      flg=1
      break
if(flg==0):
  print('APPROVED')
else:
  print('DENIED')

Buggy submission (verdict: Runtime Error):
N=int(input().split())
list=list(map(int,input().split()))
flg=0
for i in(list):
  if(i%2==0):
    if(i%3!=0 and i%5!=0):
      flg=1
      break
if(flg==0):
  print('APPROVED')
else:
  print('DENIED')
Problem p02811 (python)

Fixed submission:
K,X=list(map(int,input().split()))
if(K*500>=X):
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
k,X=list(map(int,input().split()))
if(K*500>=X):
  print('Yes')
else:
  print('No')
Problem p03106 (python)

Fixed submission:
a=input()
A=int(a.split()[0])
B=int(a.split()[1])
K=int(a.split()[2])

a=0
if(A>B): i=A
else: i=B
count=0
while(a==0):
  if(A%i==0 and B%i==0):
    count+=1
    if(count==K):
      print(i)
      break
  i-=1

Buggy submission (verdict: Runtime Error):
a=input()
A=int(a.split()[0])
B=int(a.split()[1])
K=int(a.split()[2])

a=0
if(A>B): i=A
if(B>A): i=B
count=0
while(a==0):
  if(A%i==0 and B%i==0):
    count+=1
    if(count==K):
      print(i)
      break
  i-=1
Problem p03136 (python)

Fixed submission:
N=int(input())
a=input()
num=[]
n=a.split()
for i in(n):
  num.append(int(i))

num.sort()
b=0
for i in range(len(num)-1):
  b+=num[i]
if(num[len(num)-1]<b): print('Yes')
else: print('No')

Buggy submission (verdict: Runtime Error):
N=int(input())
a=input()
num=[]
num.append(int(a.split()[0]))
num.append(int(a.split()[1]))
num.append(int(a.split()[2]))
num.append(int(a.split()[3]))

num.sort()
b=0
for i in range(len(num)-1):
  b+=num[i]
if(num[len(num)-1]<b): print('Yes')
else: print('No')
Problem p03238 (python)

Fixed submission:
age=int(input())
if(age==1): print('Hello World')
if(age==2): A=int(input())
if(age==2): B=int(input())
if(age==2): print(A+B)

Buggy submission (verdict: Runtime Error):
str=input().split(' ')
a=[]
b=[]
c=[]
for i in range(2): a.append(int(str[i]))
for i in range(a[0]): b.append(input().split(' '))
for i in range(a[0]):
  for j in range(2):
    c.append(int(b[i][j]))
d=[]
e=[]
for i in range(a[0]):
  if(a[1]>=c[i*2-1]):
    d.append(c[i*2-2])
    e.append(c[i*2-1])
if(len(d)==0): print('TLE')
else: 
  num=min(d)
  print(num)

Buggy submission (verdict: Runtime Error):
str=input().split(' ')
a=[]
b=[]
c=[]
for i in range(2): a.append(int(str[i]))
for i in range(a[0]): b.append(input().split(' '))
for i in range(a[0]):
  for j in range(2):
    c.append(int(b[i][j]))
d=[]
e=[]
for i in range(a[0]):
  if(a[1]>=c[i*2-1]):
    d.append(c[i*2-2])
    e.append(c[i*2-1])
if(len(d)==0): print('TLE')
else: 
  num=min(d)
  print(num)

Buggy submission (verdict: Runtime Error):
str=input().split(' ')
a=[]
b=[]
c=[]
for i in range(2): a.append(int(str[i]))
for i in range(a[0]): b.append(input().split(' '))
for i in range(a[0]):
  for j in range(2):
    c.append(int(b[i][j]))
d=[]
e=[]
for i in range(a[0]):
  if(a[1]>=c[i*2-1]):
    d.append(c[i*2-2])
    e.append(c[i*2-1])
if(len(d)==0): print('TLE')
else: 
  num=min(d)
  print(num)
Problem p02705 (python)

Fixed submission:
r=input()
print(3.141*2*int(r))

Buggy submission (verdict: Runtime Error):
r=input()
print(3.141*2*r)
Problem p02706 (python)

Fixed submission:
n,m=[int(i)for i in input().split()]
list=[int(i) for i in input().split()]
a=n-sum(list)
if a>=0:
  print(a)
else:
  print('-1')

Buggy submission (verdict: Runtime Error):
n,m=[int(i)for i in input()]
list=[int(i) for i in input().split()]
a=n-sum(list)
if a>=0:
  print(a)
else:
  print('-1')
Problem p02718 (python)

Fixed submission:
n,m=[int(i) for i in input().split()]
list=[int(i) for i in input().split()]
x=1/(4*m)
y=sum(list)
count=0
for i in range(1,n+1):
  if list[i-1]>=x*y:
    count+=1

if count>=m:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
n,m=[int(i) for i in input().split()]
list=[int(i) for i in input().split()]
x=1/(4*m)
count=0
for i in range(1,n+1):
  if list[i]>=x:
    count+=1

if count>=m:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
n,m=[int(i)for i in input().split()]
list=[int(i) for i in input().split()]
x=1/(4*m)
count=0
for i in range(1,n+1):
  if list[i]>=x:
    count+=1

if count>=m:
  print('Yes')
else:
  print('No'
Problem p02783 (python)

Fixed submission:
h,a=[int(i)for i in input().split()]
if h%a==0:
  print(h//a)
else:
  print(h//a+1)

Buggy submission (verdict: Runtime Error):
h,a=[int(i)for i in input().split()]
if h%a==0:
  print(h//a)
else:
  print(''h//a+1)
Problem p02801 (python)

Fixed submission:
c=input()
z='abcdefghijklmnopqrstuvwxyz'
print(z[z.index(c)+1])

Buggy submission (verdict: Runtime Error):
c=input()
z='abcdefghijklmnopqrstuvwxy'
print(z[z.index(c)+1])
Problem p02811 (python)

Fixed submission:
k,x=[int(i)for i in input().split()]
if 500*k>=x:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
k,x=[int(i)for i in input().split()]
if x>500k:
  print('No')
else:
  print('Yes')
Problem p03145 (python)

Fixed submission:
a,b,c=[int(i) for i in input().split()]
print((a*b)//2)

Buggy submission (verdict: Runtime Error):
a,b,c=[int(i) for i in input().split()]
prnit(a*b/2)
Problem p03210 (python)

Fixed submission:
X=int(input())
if X==3 or X==5 or X==7:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
X=int(input())
if X=3 or X=5 or X=7:
  print('YES')
else:
  print('NO')
Problem p03351 (python)

Fixed submission:
a,b,c,d=[int(i) for i in input().split()]
T=abs(a-b)<=d and abs(b-c)<=d
if T or abs(a-c)<=d:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
a,b,c,d=[int(i) for i in input().split()]
if (abs(a,b)>=d and abs(b,c)>=d) or abs(a,c)>=d:
  print('Yes')
else:
  print('No')
Problem p03359 (python)

Fixed submission:
a,b=[int(i) for i in input().split()]
if b>=a:
  print(a)
else:
  print(a-1)

Buggy submission (verdict: Runtime Error):
a,b=[int(i) for i in input().sprit()]
if b>=a:
  print(a)
else:
  print(a-1)
Problem p03369 (python)

Fixed submission:
S=str(input())
x=S.count('o')
print(700+x*100)

Buggy submission (verdict: Runtime Error):
S=str(input())
x=S.count('o')
prnit(700+x*100)
Problem p03377 (python)

Fixed submission:
a,b,x=[int(i) for i in input().split()]
if x>=a and a+b>x:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a,b,X=[int(i) for i in input().split()]
if x>=a and a+b>=x:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a,b,X=[int(i for i in input().split())]
if x>=a and a+b>=x:
  print('YES')
else:
  print('NO')
Problem p03385 (python)

Fixed submission:
s=str(input())
list=["a","b","c"]
S=[s[0],s[1],s[2]]
S.sort()
if S==list:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=str(input())
list=[a,b,c]
S=[s[0],s[1],s[2]]
S.sort()
if S==list:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=input()
list=[a,b,c]
x=[s.split()]
x.sort()
if x==list:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=input()
list=[a,b,c]
s.split().sort()
if s==list:
  print('Yes')
else:
  print('No')
Problem p03433 (python)

Fixed submission:
N=int(input())
A=int(input())
if N%500>A:
  print('No')
else:
  print('Yes')

Buggy submission (verdict: Runtime Error):
N=input()
A=input()
if N%500>=A:
  print('No')
else:
  print('Yes')
Problem p03447 (python)

Fixed submission:
x=int(input())
a=int(input())
b=int(input())
print((x-a)%b)

Buggy submission (verdict: Runtime Error):
x=int(input())
a=int(input())
b=int(input())
prnit((x-a)%b)
Problem p03469 (python)

Fixed submission:
print("2018"+input()[4:])

Buggy submission (verdict: Runtime Error):
a=str(input())
a.replace(a[3],"8")
prnit(a)

Buggy submission (verdict: Runtime Error):
print("2018"+input()(4:))

Buggy submission (verdict: Runtime Error):
s=str(input())
s[3]="8"
print(s)

Buggy submission (verdict: Runtime Error):
s=str((input())
s[3]="8"
print(s)

Buggy submission (verdict: Runtime Error):
s=str(input())
s[3]="8"
print(s)

Buggy submission (verdict: Runtime Error):
s=str(input())
s[3]='8'
print(s)

Buggy submission (verdict: Runtime Error):
s=str(input())
s.replace(s[3],'8')'
print(s)

Buggy submission (verdict: Runtime Error):
s=str(input())
a=s.replace(s[3],'8')'
print(a)

Buggy submission (verdict: Runtime Error):
s=int(input())
s[3]='8'
print(s)

Buggy submission (verdict: Runtime Error):
s=input()
s[3]='8'
print(s)

Buggy submission (verdict: Runtime Error):
s=str(input())
s[3]='8'
print(s)
Problem p03473 (python)

Fixed submission:
x=int(input())
print(48-x)

Buggy submission (verdict: Runtime Error):
x=input()
print(48-x)
Problem p03485 (python)

Fixed submission:
a,b=[int(i) for i in input().split()]
x=a+b+1
print(x//2)

Buggy submission (verdict: Runtime Error):
a,b=[int(i) for i in input().split()]
if  (a+b)%2==0:
  print(x)
else:
  print((a+b+1)/2)

Buggy submission (verdict: Runtime Error):
a,b=[int(i) for i in input().split()]
x=(a+b)/2
if  (a+b)%2==0:
  prnit(x)
else:
  print(x%1+1)

Buggy submission (verdict: Runtime Error):
a,b=[int(i) for i in input().split()]
x=(a+b)/2
prnit(a%1+1)
Problem p03597 (python)

Fixed submission:
n=int(input())
a=int(input())
print(n**2-a)

Buggy submission (verdict: Runtime Error):
n=input()
a=input()
print(n**2-a)
Problem p03605 (python)

Fixed submission:
N=str(input())
if N[0]=='9' or N[1]=='9':
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
N=int(input())
if N[0]=='9' or N[1]=='9':
  print('Yes')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
N=int(input())
if N[0]=='9' or N[1]=='9':
  print('Yes')
else:
  print('NO')
Problem p03643 (python)

Fixed submission:
N=str(input())
print('ABC'+N)

Buggy submission (verdict: Runtime Error):
N=int(input())
print('ABC'+N)
Problem p03693 (python)

Fixed submission:
a,b,c=[int(i) for i in input().split()]
d=100*a+10*b+c
if d%4==0:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a,b,c=[int(i) for i in input().split()]
d=100a+10b+c
if d%4==0:
  print('YES')
else:
  print('NO')
Problem p03697 (python)

Fixed submission:
a,b=[int(i) for i in input().split()]
c=a+b
if c>=10:
  print('error')
else:
  print(c)

Buggy submission (verdict: Runtime Error):
a,b=[int(i) for i in input().split()]
c=a+b
if c>=10:
  print(''error)
else:
  print(c)
Problem p03711 (python)

Fixed submission:
a,b=[str(i) for i in input().split()]
list1=["1","3","5","7","8","10","12"]
list2=["4","6","9","11"]
if a in list1 and b in list1:
  print('Yes')
elif a in list2 and b in list2:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
a,b=[str(i) for i in input().split()]
list1=["1","3","5","7","8","10","12"]
list2=["4","6","9","11"]
if a,b in list1 or a,b in list2:
  print('Yes')
else:
  print('No')
Problem p03729 (python)

Fixed submission:
a,b,c=[str(i) for i in input().split()]
if a[-1]==b[0] and b[-1]==c[0]:
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
a,b,c=[str(i) for i in input().split()]
if a[-1]==b[1] and b[-1]==c[1]:
  print('YES')
else:
  print('NO')