Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Time Limit Exceeded):
import sys
import math
 
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
 
def main():
  K = int(input())
  s = list(map(int, input().split()))
  prod = 1
  for k in range(K):
    prod = prod * s[k]
  if prod > 10 ** 18:
    print(-1)
  else:
    print(prod)

if __name__ == '__main__':
  main()

Fixed submission:
import sys
import math
 
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
 
def main():
  K = int(input())
  s = list(map(int, input().split()))
  prod = 1
  a = 10 ** 18
  if 0 in s:
    print(0)
    sys.exit()
  for k in range(K):
    prod = prod * s[k]
    if prod > a:
      print(-1)
      sys.exit()
  
  print(prod)

if __name__ == '__main__':
  main()
Buggy python submission (verdict: Runtime Error):
import sys
import math

input = sys.stdin.readline
 
def main():
  a,b = map(double, input().split())
  print(math.floor(a * b))

if __name__ == '__main__':
  main()

Fixed submission:
from decimal import Decimal, ROUND_FLOOR
 
a,b = input().split()
a = int(a)
b = Decimal(b)
 
print(int(a*b))
Buggy python submission (verdict: Time Limit Exceeded):
hiki,hon = map(int,input().split())

turu = 0
kame = 0

while(1):
    if hon < 4 or hiki == 0:
        break
    if hon >= 4:
        hon = hon -4
        kame = kame + 1
        hiki = hiki - 1
        
if hon == 2:
    turu = turu + 1
    hiki = hiki -1
    hon = 0
hantei = hon % 2
while(1):
    if hiki == 0 or kame == 0 or hantei == 1:
        break
    else:
        if hiki > 0 and kame > 0 and hantei == 0:
            hiki = hiki - 1
            kame = kame - 1
if hiki == 0 and hon == 0:
    print("Yes")
else:
    print("No")

Fixed submission:
hiki,hon = map(int,input().split())
turu = 0
kame = 0

for i in range(50):
    if hiki > 0 and hon >= 4:
        hon = hon - 4
        kame = kame + 1
        hiki = hiki - 1
    elif hon == 2 and hiki == 1:
        hiki = 0
        hon = 0
    else:
        break

hantei = hon % 2

for i in range(50):
    if hiki == 0 or kame == 0 or hantei == 1:
        break
    elif hiki > 0 and kame > 0 and hantei == 0:
        hiki = hiki - 1
        kame = kame - 1

if hiki == 0 and hon == 0:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
num = int(input())
h = input().split()

ans = 0

for i in range(num):
    if i == 0:
        ans = ans + int(h[i])
    else:
        ans = ans * int(h[i])
if ans > 10 ** 18:
    print("-1")
else:
    print(ans)

Fixed submission:
num = int(input())
h = input().split()
hi = sorted(h)
#print(hi)

#print(num)
#print(h)
ans = 0
 
for i in range(num):
    if i == 0:
        ans = ans + int(hi[i])
    else:
        ans = ans * int(hi[i])
        if ans > 10**18 or ans == 0:
            break
if ans <= 10**18:
    print(ans)
else:
    print("-1")

Buggy python submission (verdict: Time Limit Exceeded):
num = int(input())
h = input().split()

#print(num)
#print(h)
ans = 0

for i in range(num):
    if i == 0:
        ans = ans + int(h[i])
    else:
        ans = ans * int(h[i])
if ans > 1000000000000000000:
    print("-1")
else:
    print(ans)

Fixed submission:
num = int(input())
h = input().split()
hi = sorted(h)
#print(hi)

#print(num)
#print(h)
ans = 0
 
for i in range(num):
    if i == 0:
        ans = ans + int(hi[i])
    else:
        ans = ans * int(hi[i])
        if ans > 10**18 or ans == 0:
            break
if ans <= 10**18:
    print(ans)
else:
    print("-1")
Buggy python submission (verdict: Time Limit Exceeded):
a = input().split()

pura = int(a[0])     #1
zero = int(a[1])     #0
mai  = int(a[2])     #-1
num  = int(a[3])     #枚数
total = 0

for i in range(num):
    if pura > 0:
        pura = pura - 1
        total = total + 1
    elif zero > 0:
        zero = zero - 1
        total = total + 0
    elif mai > 0:
        mai = mai - 1
        total = total - 1
print(total)

Fixed submission:
a = input().split()

pura = int(a[0])     #1
zero = int(a[1])     #0
mai  = int(a[2])     #-1
num  = int(a[3])     #枚数
total = 0
k = num-pura-zero

if pura >= num:
    total = num
else:
    total = pura
    if zero >= num - pura:
        total = pura
    else:
        total = pura-(k)
print(total)

Buggy python submission (verdict: Time Limit Exceeded):
a = input().split()

pura = int(a[0])     #1
zero = int(a[1])     #0
mai  = int(a[2])     #-1
num  = int(a[3])     #枚数
total = 0

for i in range(num):
    if pura > 0:
        pura = pura - 1
        total = total + 1
    elif zero > 0:
        zero = zero - 1
        total = total + 0
    elif mai > 0:
        mai = mai - 1
        total = total - 1
print(total)

Fixed submission:
a = input().split()

pura = int(a[0])     #1
zero = int(a[1])     #0
mai  = int(a[2])     #-1
num  = int(a[3])     #枚数
total = 0
k = num-pura-zero

if pura >= num:
    total = num
else:
    total = pura
    if zero >= num - pura:
        total = pura
    else:
        total = pura-(k)
print(total)
Buggy python submission (verdict: Runtime Error):
a, b, c = map(imput().split())
print(a if b == c else b if a == c else c)

Fixed submission:
a, b, c = map(int, input().split())
print(a if b == c else b if a == c else c)
Buggy python submission (verdict: Runtime Error):
n, m = int(input())

print((n-1)*(m-1))

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

print((n-1)*(m-1))

Buggy python submission (verdict: Runtime Error):
n, m = int(input())

a = n - 1
b = m - 1

print(a * b)

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

print((n-1)*(m-1))
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int(input().split()))
print("Yes" if a <= c <= b else "No")

Fixed submission:
a, b, c = map(int, input().split())
print("Yes" if a <= c <= b else "No")
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")

Fixed submission:
a = int(input())
b = int(input())
print("GREATER" if a > b else "LESS" if a < b else "EQUAL")
Buggy python submission (verdict: Runtime Error):
s = input().split()

s[6], s[14] = ""

print(s)

Fixed submission:
a, b, c = input().split(",")

print(a,b,c)
Buggy python submission (verdict: Runtime Error):
import math

r=int(input)

k=math.pi

l=2*k*r

print(l)


Fixed submission:
import math
 
r=int(input())
k=math.pi
 
t=2*k*r
 
print(t)
Buggy python submission (verdict: Runtime Error):
A = int(input()) -1
B = int(input()) -1

correct_list = [1,2,3]
correct_list.pop(A)
correct_list.pop(B)
print(correct_list[0])

Fixed submission:
A = int(input())
B = int(input())

ans_list = []
ans_list.append(A)
ans_list.append(B)
correct_list = [1,2,3]

ans = list(set(correct_list) - set(ans_list))
print(ans[0])
Buggy python submission (verdict: Runtime Error):
import math
A, B = [int(x) for x in input().split()]


def lcm(x, y):
    return (x*y)//math.gcd(A,B)
print(lcm(A,B))


Fixed submission:
from fractions import gcd
A, B = [int(x) for x in input().split()]


def lcm(x, y):
    return (x*y)//gcd(A,B)
print(lcm(A,B))
Buggy python submission (verdict: Runtime Error):
N = int(input())

def factorial(n, p):
    if n == 0: return 1
    return n/p + factorial(n/p, p)

def duble_factorial(n, p):
    if n%2 == 1:
        return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
    else:
        res = factorial(n/2, p)
        if p == 2: 
            res += n/2
        return res

ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans)

Fixed submission:
N = int(input())

def factorial(n, p):
    if n == 0: return 0
    return n//p + factorial(n//p, p)

def duble_factorial(n, p):
    if n%2 == 1:
        return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
    else:
        res = factorial(n//2, p)
        if p == 2: 
            res += n//2
        return res

ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans)

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

def f(n):
    if n < 2:
        return 1
    if n >= 2:
        return n*f(n-2)

def memoize(f): #メモ化関数
    table = {}
    def func(*args):
        if not args in table:
            table[args] = f(*args)
        return table[args]
    return func
      
@memoize
def memf(n):
    if ( n<=1 ):
        return 1
    else:
        return n*f(n-2)
        
ans = memf(N)
# print(ans)
str_ans = str(ans)
count = 0
for s in reversed(str_ans):
    if s != '0':
        break
    count += 1
print(count)

Fixed submission:
N = int(input())

def factorial(n, p):
    if n == 0: return 0
    return n//p + factorial(n//p, p)

def duble_factorial(n, p):
    if n%2 == 1:
        return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
    else:
        res = factorial(n//2, p)
        if p == 2: 
            res += n//2
        return res

ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans)

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

def f(n):
    if n < 2:
        return 1
    if n >= 2:
        return n*f(n-2)

@memoize
def memf(n):
    if ( n<=1 ):
        return 1
    else:
        return n*f(n-2)
        
ans = memf(N)
# print(ans)
str_ans = str(ans)
count = 0
for s in reversed(str_ans):
    if s != '0':
        break
    count += 1
print(count)

Fixed submission:
N = int(input())

def factorial(n, p):
    if n == 0: return 0
    return n//p + factorial(n//p, p)

def duble_factorial(n, p):
    if n%2 == 1:
        return factorial(n,p) - duble_factorial(n-1, p) # n!! = n!/(n-1)!!だからpで割ると引き算で表せるよね
    else:
        res = factorial(n//2, p)
        if p == 2: 
            res += n//2
        return res

ans = min(duble_factorial(N,2), duble_factorial(N,5))
print(ans)
Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
c=a*b
if c%2 == o:
  print('Even')
else:
  print('Odd')

Fixed submission:
a,b=map(int, input().split())
c=a*b
if c%2 == 0:
  print('Even')
else:
  print('Odd')
Buggy python submission (verdict: Runtime Error):
a,b=map(str, input().split())
c=a+b
d=int(c)
k=o
for i in range(1,100):
  if d==i**2:
    k=k+1
  else:
    k=k
if k>=1:
  print('Yes')
else:
  print('No')

Fixed submission:
a,b=map(str, input().split())
c=a+b
d=int(c)
k=0
for i in range(1,1001):
  if d==i**2:
    k=k+1
  else:
    k=k
if k>=1:
  print('Yes')
else:
  print('No')
Buggy python submission (verdict: Runtime Error):
a,b,c,d=map(int, input().split())
L=a+b,R=c+d
if L>R:
  print('Left')
elif L==R:
  print('Balanced')
else:
  print('Right')

Fixed submission:
a,b,c,d=map(int, input().split())
L=a+b
R=c+d
if L>R:
  print('Left')
elif L==R:
  print('Balanced')
else:
  print('Right')
Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
A=list(map(int,input().split()))
s=1
for i in range(N):
  s*=A[i]
if s<=10**18:
  print(s)
else:
  print(-1)

Fixed submission:
N=int(input())
A=list(map(int,input().split()))
s=1
if 0 in A:
  print(0)
else:
  for i in range(N):
    s*=A[i]
    if s>10**18:
      print(-1)
      break
  if s<=10**18:
    print(s)

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())
A=list(map(int,input().split()))
s=1
for i in range(N):
  s*=A[i]
if s<=10**18:
  print(s)
else:
  print(-1)

Fixed submission:
N=int(input())
A=list(map(int,input().split()))
s=1
if 0 in A:
  print(0)
else:
  for i in range(N):
    s*=A[i]
    if s>10**18:
      print(-1)
      break
  if s<=10**18:
    print(s)
Buggy python submission (verdict: Runtime Error):
from decimal import Decimal
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)


Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)

Buggy python submission (verdict: Runtime Error):
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal('a')
d=Decimal('b')
e=Decimal('c*d')
f=math.floor(e)
print(f)

Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)

Buggy python submission (verdict: Runtime Error):
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal("a")
d=Decimal("b")
e=c*d
f=math.floor(e)
print(f)

Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)

Buggy python submission (verdict: Runtime Error):
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal('a')
d=Decimal('b')
e=c*d
f=math.floor(e)
print(f)

Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)

Buggy python submission (verdict: Runtime Error):
import decimal
import math
a,b=map(str,input().split())
c=Decimal('a')
d=Decimal('b')
e=c*d
f=math.floor(e)
print(f)

Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)

Buggy python submission (verdict: Runtime Error):
from decimal import Decimal
a,b=map(str,input().split())
c=Decimal('a')
d=Decimal('b')
e=c*d
f=int(e)
print(f)

Fixed submission:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)
Buggy python submission (verdict: Runtime Error):
K=int(input())
S=input()
D=[]
for i in range(K):
  D.append(S[i])
D.append("...")
P=''.join(D)  
if len(S)<=K:
  print(S)
else:
  print(P)

Fixed submission:
K=int(input())
S=input()
D=[]
if len(S)<=K:
  print(S)
else:
  for i in range(K):
    D.append(S[i])
  D.append("...")
  P=''.join(D)  
  print(P)
Buggy python submission (verdict: Runtime Error):
X=int(input())
a=100
for i in range(1,10**18):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)
    

Fixed submission:
X=int(input())
a=100
for i in range(1,10**18):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)
    break

Buggy python submission (verdict: Runtime Error):
X=int(input())
a=100
for i in range(1,1000000000000000000):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)
    

Fixed submission:
X=int(input())
a=100
for i in range(1,10**18):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)
    break

Buggy python submission (verdict: Runtime Error):
X=int(input())
a=100
import math
for i in range(1,1000000000000000000):
  a+=math.floor(0.01*a)
  if X<=a:
    print(i)
    

Fixed submission:
X=int(input())
a=100
for i in range(1,10**18):
  s=int(0.01*a)
  a+=s
  if X<=a:
    print(i)
    break
Buggy python submission (verdict: Runtime Error):
s,w=input().split()
if s<=w:
  print(unsafe)
if s>w:
  print(safe)

Fixed submission:
s,w=map(int, input().split())
if s<=w:
  print("unsafe")
else:
  print("safe")

Buggy python submission (verdict: Runtime Error):
s,w=input().split()
if s<=w:
  print(unsafe)
else:
  print(safe)

Fixed submission:
s,w=map(int, input().split())
if s<=w:
  print("unsafe")
else:
  print("safe")

Buggy python submission (verdict: Runtime Error):
S,W=input().split()
if S<=W:
  print(unsafe)
else:
  print(safe)

Fixed submission:
s,w=map(int, input().split())
if s<=w:
  print("unsafe")
else:
  print("safe")
Buggy python submission (verdict: Runtime Error):
R=int,input()
r=2*3.14159265358979*R
print(r)

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

Buggy python submission (verdict: Runtime Error):
R=input()
r=2*3.14159265358979*R
print(r)

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

Buggy python submission (verdict: Runtime Error):
R=input()
import math
r=2*math.pi*R
print(r)

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

Buggy python submission (verdict: Runtime Error):
R=input()
import math
r=2*math.pi*R
print(R)

Fixed submission:
R=int(input())
r=2*3.14159265358979*R
print(r)
Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if a in 7:
  print("Yes")
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if 'a' in 7:
  print("Yes")
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if 'a' in 7:
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if int(a[1])==7:
  print("Yes")
elif int(a[2])==7:
  print("Yes")
elif int(a[3])==7:
  print("Yes)
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if int(a[1])==7:
  print("Yes")
elif int(a[-2])==7:
  print("Yes")
elif int(a[3])==7:
  print("Yes)
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
if a[1]=7:
  print("Yes")
if a[2]=7:
  print("Yes")
if a[3]=7:
  print("Yes")
else:
  print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print("Yes")
    break
print("No")
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N=int(input())
a=str(N)
for i in range(1,4):
  if a[i]=7:
    print(Yes)
    break
   

Fixed submission:
N=int(input())
a=str(N)
if '7' in a:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S//(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
if h<M:
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S//(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=1/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=1/(4*M)
h=0
for i in range(len(A)):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
if M<h
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=1/(4*M)
h=0
for i in range(len(A)):
  if A[i]>=l:
    h+=1
  else:
    h+=0
if h=M:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M=map(int,input().split())
A=list(map(int,input().split()))
S=sum(A)
l=S/(4*M)
h=0
for i in range(N):
  if A[i]>=l:
    h+=1
if h>=M:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
S=input()
if S[2]=S[3] and S[4]=S[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
S=input()
if s[2]=s[3] and s[4]=s[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
s=input()
if s[2]=s[3] and s[4]=s[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
S=input()
s=str(S)
if s[2]=s[3] and s[4]=s[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
S=input()
if S[2]=S[3] and S[4]=S[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
S=input()
if S[2]=S[3],S[4]=S[5]:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a,b,c,d,e,f=input()
if c=d,e=f:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a,b,c,d,e,f=map(str,input().split())
if c=d,e=f:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a,b,c,d,e,f=map(int,input().split())
if c=d,e=f:
  print("Yes")
else:
  print("No")

Fixed submission:
S=input()
if S[2]==S[3] and S[4]==S[5]:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
X=int(input())
g=X//500
h=X-500*g
i=h//5
j=1000*g+5*i
input(j)

Fixed submission:
X=int(input())
g=X//500
h=X-500*g
i=h//5
j=1000*g+5*i
print(j)

Buggy python submission (verdict: Runtime Error):
X=int(input())
g=X//500
h=X-g
i=h//5
j=1000*g+5*i
input(j)

Fixed submission:
X=int(input())
g=X//500
h=X-500*g
i=h//5
j=1000*g+5*i
print(j)
Buggy python submission (verdict: Runtime Error):
S=input()
if S==AAA or S==BBB:
  print("No")
else:
  print("Yes")

Fixed submission:
S=input()
if S=="AAA" or S=="BBB":
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
S=input()
if S=AAA or S=BBB:
  print("No")
else:
  print("Yes")

Fixed submission:
S=input()
if S=="AAA" or S=="BBB":
  print("No")
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
S=input()
if S="AAA" or S="BBB":
  print("No")
else:
  print("Yes")

Fixed submission:
S=input()
if S=="AAA" or S=="BBB":
  print("No")
else:
  print("Yes")