Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
S = list(input())
K = int(input())
if K == 1:
    print(S[0])
else:
  for x in range(S):
    if int(x) != 1:
      print(S[x])
      break

Fixed submission:
S = list(map(int,input()))
K = int(input())
ans = 1
if K == 1 or S.count(S[0]) == len(S) or S.count(1) == len(S):
    ans = S[0]
else:
  for x in range(K):
    if S[x] != 1:
      ans = S[x]
      break
print(ans)

Buggy python submission (verdict: Runtime Error):
S = list(input())
K = int(input())
if K == 1:
    print(S[0])
else:
    x = 0
    while int(S[x]) == 1:
        x += 1
    print(S[x])

Fixed submission:
S = list(map(int,input()))
K = int(input())
ans = 1
if K == 1 or S.count(S[0]) == len(S) or S.count(1) == len(S):
    ans = S[0]
else:
  for x in range(K):
    if S[x] != 1:
      ans = S[x]
      break
print(ans)
Buggy python submission (verdict: Runtime Error):
s = input()
if s[0] == "A":
  C = []
  for i in range(3, len(s)-2):
    if s[i] == "C":
      C.append(i)
  if len(C) != 1:
    print("WA")
    break 
  else:
    up = False
    for j in range(1,len(s)):
      if j == C[0]:
        pass
      elif s[j].isupper:
        up = True
    if up:
      print("WA")
    else:
      print("AC")
else:
  print("WA")
    

Fixed submission:
s = list(input())
if s[0] == "A":
  C = []
  for i in range(2, len(s)-1):
    if s[i] == "C":
      C.append(i)
  if len(C) != 1:
    print("WA")
  else:
    up = False
    for j in range(1,len(s)):
      if j == C[0]:
        continue
      elif not s[j].islower():
        up = True
    if up:
      print("WA")
    else:
      print("AC")
else:
  print("WA")
Buggy python submission (verdict: Runtime Error):
x= list(map(int,input().split()))
k = int(input())
list.sort()
max = list[0] + lsit[1] + list[2] *2*k
 
print(max)
    

Fixed submission:
x= list(map(int,input().split()))
k = int(input())
x.sort()
a = x[2]
for i in range(k):
    a = a *2
max = x[0] + x[1] + a
 
print(max)
Buggy python submission (verdict: Time Limit Exceeded):
a,b,k = map(int, input().split())
c = []
for x in range(a,b+1):
  if a <= x and x <= b:
    c.append(x)
c1 = []
for x in c[:k]:
  c1.append(x)
for x in c[(len(c)-k):]:
  if x not in c1:
    c1.append(x)
for x in c1:
  print(x)

Fixed submission:
a,b,k = map(int, input().split())
ab = range(a, b+1)
for c in sorted(set(ab[:k])|set(ab[-k:])):
    print(c)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,k = map(int, input().split())
c = []
for x in range(a,b+1):
  if a <= x and a <= b:
    c.append(x)
c1 = []
for x in c[:k]:
  c1.append(x)
for x in c[(len(c)-k):]:
  if x not in c1:
    c1.append(x)
for x in c1:
  print(x)

Fixed submission:
a,b,k = map(int, input().split())
ab = range(a, b+1)
for c in sorted(set(ab[:k])|set(ab[-k:])):
    print(c)
Buggy python submission (verdict: Runtime Error):
print(["No","Yes"][((int(input())-int(input())))%500==0]

Fixed submission:
n = int(input())
a = int(input())
n = (n % 500)
print(["No", "Yes"][n <= a])
Buggy python submission (verdict: Runtime Error):
form collections import Counter
s = input().Counter().most_common(1)[0][1]
if s <= 3:
  print("Yes")
else:
  print("No")

Fixed submission:
s = input()
ans = "No"
for i in range(2):
  if s[i] == s[i+1] == s[i+2]:
    ans = "Yes"
    break
print(ans)
Buggy python submission (verdict: Runtime Error):
r,g = map(int, input().split())
print((g*2)/r)

Fixed submission:
r = int(input())
g = int(input())
print((g*2)-r)
Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
if ((a%3 == 0) or (b%3 == 0)) or (sum(a,b)%3== 0):
  print("Possible")
else:
  print("Impossible")

Fixed submission:
a,b=map(int, input().split())
if ((a%3 == 0) or (b%3 == 0)) or ((a + b)%3== 0):
  print("Possible")
else:
  print("Impossible")

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
if (a%3 == 0) or (b%3 == 0) or (sum(a,b)%3== 0):
  print("Possible")
else:
  print("Impossible")

Fixed submission:
a,b=map(int, input().split())
if ((a%3 == 0) or (b%3 == 0)) or ((a + b)%3== 0):
  print("Possible")
else:
  print("Impossible")

Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
if a%3 == 0 or b%3 == 0 or sum(a,b)%3== 0:
  print("Possible")
else:
  print("Impossible")

Fixed submission:
a,b=map(int, input().split())
if ((a%3 == 0) or (b%3 == 0)) or ((a + b)%3== 0):
  print("Possible")
else:
  print("Impossible")
Buggy python submission (verdict: Runtime Error):
n = int(input())
a = [int(input())-1 for x in range(n)]
ans = 1
ok = False
i = a.index(1)
for x in range(n):
    if i == 0:
        ok = True
        break
    i = a.index(i)
    ans += 1

print([-1, ans][ok])

Fixed submission:
n = int(input())
a = [int(input())-1 for x in range(n)]
ans = 0
ok = False
i = 0
for x in range(n):
    if i == 1:
        ok = True
        break
    i = a[i]
    ans += 1

print([-1, ans][ok])
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input().spilt())
ans= "NO"
for i in range(10):
	if a*i % b == c:
		ans ="YES"
print(ans)

Fixed submission:
a,b,c=map(int, input().split())
ans= "NO"
for i in range(100):
	if a*i % b == c:
		ans ="YES"
print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
ans = 1
for x in range(1, n + 1):
    ans = ans * x
print(ans % 1000000007)

Fixed submission:
n = int(input())
ans = 1
for x in range(1, n + 1):
    ans = x * ans % (10**9 + 7)
print(ans)
Buggy python submission (verdict: Runtime Error):
r=input("r:")
PI=3.14
s1=(r**2)*PI
print(s1/PI)

Fixed submission:
r=input()
print(r**2)
Buggy python submission (verdict: Runtime Error):
# coding: utf-8

N=input()

print(int((N*N))-int(input()))

Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

N=input()

print(int((N**2))-int(input()))


Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

N=input()
A=input()

print(int((N**2))-int(A))

Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

N=input()
A=input()

print((N**2)-A)

Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

N=input()
A=input()

print(str((N**2)-A))

Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

print((N**2)-A)



Fixed submission:
N=int(input())

print((N*N)-int(input()))

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

N=input()
A=input()

print((N**2)-A)


Fixed submission:
N=int(input())

print((N*N)-int(input()))
Buggy python submission (verdict: Runtime Error):
x, y = map(int, input(), input())

if x*y % 2 == 0:
    print("Even")
else:
    print("Odd")


Fixed submission:
x, y = map(int, input().split())

if x*y % 2 == 0:
    print("Even")
else:
    print("Odd")

Buggy python submission (verdict: Runtime Error):
x, y = map(int, input(), input())

if x*y/2 == 0:
    print("Even")
else:
    print("Odd")


Fixed submission:
x, y = map(int, input().split())

if x*y % 2 == 0:
    print("Even")
else:
    print("Odd")
Buggy python submission (verdict: Runtime Error):
print(int(r*r))

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

Buggy python submission (verdict: Runtime Error):
int(r*r)

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

Buggy python submission (verdict: Runtime Error):
r*r

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

Buggy python submission (verdict: Runtime Error):
print((int(sys.stdin.readline())) ** 2)

Fixed submission:
import sys

print((int(sys.stdin.readline())) ** 2)
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
if a+b==c or a+c==b or a==b+c
print("yes")
else
print("no")

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

area = (a+b)*h%2
print(area)

Fixed submission:
a = int(input())
b = int(input())
h = int(input())
 
area = (a + b)*h//2
print(area)

Buggy python submission (verdict: Runtime Error):
(a+b)*h%2

Fixed submission:
a = int(input())
b = int(input())
h = int(input())
 
area = (a + b)*h//2
print(area)
Buggy python submission (verdict: Runtime Error):
n = int(input())
xy = list()
for i in range(n):
  xy.append(list(map(int, input().split())))
  
dsum = 0
dist_1 = [[0] * n for k in range(n)]
for i in range(n-1):
  for J in range(i+1, n):
    dist = ((xy[i][0] - xy[j][0] ** 2 + (xy[i][1] - xy[j][1]) ** 2)**(1/2)
    dist_1[i][j] = dist        
            

Fixed submission:
n = int(input())
xy = list()
for i in range(n):
    xy.append(list(map(int,input().split())))
 
dsum = 0
dist_l = [[0] * n for k in range(n)]
for i in range(n-1):
    for j in range(i+1, n):
        dist = ((xy[i][0] - xy[j][0]) ** 2 + (xy[i][1] - xy[j][1]) ** 2) ** (1/2)
        dist_l[i][j] = dist
        dist_l[j][i] = dist
        dsum = dsum + dist
 
ans = dsum * (n-1) / (n * (n-1) / 2)
 
print(ans)
Buggy python submission (verdict: Runtime Error):
N = int(input())
A = list(map(int,input().split()))
ans = 0

for i in A:
    a += 1/i

print(1/a)


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

for i in A:
    ans += 1/i

print(1/ans)
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

l = [A,B,C,D,E]
sub = 10 - min([i%10 for i in l if i%10!=0 ])
M = []
for i in l:
  if i%10 == 0:
    M.append(i)
  else:
    M.append(((i//10)+1)*10)
print(sum(M)-sub)



Fixed submission:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

l = [A,B,C,D,E]
m = [i%10 for i in l if i%10!=0 ]
if len(m) == 0:
  sub = 0
else:
  sub = 10 - min(m)
M = []
for i in l:
  if i%10 == 0:
    M.append(i)
  else:
    M.append(((i//10)+1)*10)
print(sum(M)-sub)

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

l = [A,B,C,D,E]
sub = 10 - min([i%10 for i in l if i%10!==0])
M = []
for i in l:
  if i%10 == 0:
    M.append(i)
  else:
    M.append(((i//10)+1)*10)
print(sum(M)-sub)

Fixed submission:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

l = [A,B,C,D,E]
m = [i%10 for i in l if i%10!=0 ]
if len(m) == 0:
  sub = 0
else:
  sub = 10 - min(m)
M = []
for i in l:
  if i%10 == 0:
    M.append(i)
  else:
    M.append(((i//10)+1)*10)
print(sum(M)-sub)
Buggy python submission (verdict: Runtime Error):
S = input()
if len(S)==2:
    print(S)
else:
    print(reverse(S))


Fixed submission:
S = input()
if len(S)==2:
    print(S)
else:
    print(S[::-1])
Buggy python submission (verdict: Runtime Error):
N,M = map(int,input().split())
S = input()
T = input()

def gcd(a,b):
    while b>0:
        a,b = b,a%b
    return a

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

L = lcm(N,M)
G = gcd(N,M)
n = L//N
m = L//M

s = [S[i*m] for i in range(G)]
t = [T[i*n] for i in range(G)]

if s == t or (G == 1 and S[0]==T[0}]):
    print(L)
else:
    print(-1)


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

def gcd(a,b):
    while b>0:
        a,b = b,a%b
    return a

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

L = lcm(N,M)
G = gcd(N,M)
n = L//N
m = L//M

s = [S[i*m] for i in range(G)]
t = [T[i*n] for i in range(G)]

if s == t or (G == 1 and S[0]==T[0]):
    print(L)
else:
    print(-1)
Buggy python submission (verdict: Runtime Error):
K = int(input())
if K%2 = 0:
    A = (K/2)*(K/2)
else:
    A = ((K-1)/2)*((K+1)/2)

print(A)

Fixed submission:
K = int(input())
if K%2 == 0:
    A = (K/2)*(K/2)
else:
    A = ((K-1)/2)*((K+1)/2)

print(int(A))
Buggy python submission (verdict: Runtime Error):
N = int(input())
if(N%2 == 1):
  a = 2N 
else:
  a = N
print(a)


Fixed submission:
N = int(input())
if(N%2 == 1):
  a = 2*N 
else:
  a = N
print(a)
Buggy python submission (verdict: Runtime Error):
N = int(input())
A = list(map(int,input().split()))

asorted = sorted(A)
print(asorted[N]-asorted[0])


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

asorted = sorted(A)
print(asorted[N-1]-asorted[0])

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

asorted = sorted(A)
print(asorted[N+1]-asorted[0])

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

asorted = sorted(A)
print(asorted[N-1]-asorted[0])
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A = list(map(int,input().split()))
a = list(range(1,N+1))
bbef = -N//2
baft = (-N//2)+1
elementbef = [abs(i-j-bbef) for (i,j) in zip(A,a)]
sumbef = sum(elementbef)
elementaft = [abs(i-j-baft) for (i,j) in zip(A,a)]
sumaft = sum(elementaft)
while(sumaft-sumbef < 0):
    bbef = bbef+1
    baft = baft+1
    elementbef = [abs(i-j-bbef) for (i,j) in zip(A,a)]
    sumbef = sum(elementbef)
    elementaft = [abs(i-j-baft) for (i,j) in zip(A,a)]
    sumaft = sum(elementaft)
print(sumbef)

Fixed submission:
N = int(input())
A = list(map(int,input().split()))
a = list(range(1,N+1))
elements = sorted([i-j for (i,j) in zip(A,a)])
if(N%2 == 1):
    b = elements[N//2]
else:
    b = elements[(N//2)-1]
answer = sum([abs(i-j-b) for (i,j) in zip(A,a)])
print(answer)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A = list(map(int,input().split()))
a = list(range(1,N+1))
bbef = -N
baft = -N+1
elementbef = [abs(i-j-bbef) for (i,j) in zip(A,a)]
sumbef = sum(elementbef)
elementaft = [abs(i-j-baft) for (i,j) in zip(A,a)]
sumaft = sum(elementaft)
while(sumaft-sumbef < 0):
    bbef = bbef+1
    baft = baft+1
    elementbef = [abs(i-j-bbef) for (i,j) in zip(A,a)]
    sumbef = sum(elementbef)
    elementaft = [abs(i-j-baft) for (i,j) in zip(A,a)]
    sumaft = sum(elementaft)
print(sumbef)

Fixed submission:
N = int(input())
A = list(map(int,input().split()))
a = list(range(1,N+1))
elements = sorted([i-j for (i,j) in zip(A,a)])
if(N%2 == 1):
    b = elements[N//2]
else:
    b = elements[(N//2)-1]
answer = sum([abs(i-j-b) for (i,j) in zip(A,a)])
print(answer)
Buggy python submission (verdict: Runtime Error):
    N = int(input())

    XY = []

    for i in range(N):
        Xi, Yi = map (float, input().split())
        XY.append([Xi,Yi])

    Z  = 0
    for i in range(N-1):
        for j in range(i + 1, N):
            Z += ((XY[i][0] - XY[j][0])**2 + (XY[i][1] - XY[j][1])**2 ) ** 0.5
    
    print(Z * 2 / N)

Fixed submission:
N = int(input())

XY = []

for i in range(N):
    Xi, Yi = map (float, input().split())
    XY.append([Xi,Yi])

Z  = 0
for i in range(N-1):
    for j in range(i + 1, N):
        Z += ((XY[i][0] - XY[j][0])**2 + (XY[i][1] - XY[j][1])**2 ) ** 0.5

print(Z * 2 / N)
Buggy python submission (verdict: Runtime Error):
z=r*r
print z

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

Buggy python submission (verdict: Runtime Error):
import sys
 
if __name__ == '__manin__':
  
    r=sys.argv[1]
    pie=3.14
    
    area = r^2 * pie
    base_area = 1^1 * pie  
    
    print(int(area/base_area)(

Fixed submission:
if __name__ == '__main__':
   r = int(input())
   print(pow(r,2))

Buggy python submission (verdict: Runtime Error):
import sys

if __name__ == '__manin__':
  
    input=sys.argv[1]
    
    area = input^2 * 3.14
    base_area = 1^1 * 3.14 
    
    print int(area/base_areaa)

Fixed submission:
if __name__ == '__main__':
   r = int(input())
   print(pow(r,2))
Buggy python submission (verdict: Runtime Error):
def main():
    _len = int(input())
    _str = input()

    if _len % 2: 
        print("No")
        return

    print(_len/2)
    a, b = _str[:_len/2], _str[_len/2:]

    print("Yes" if a == b else "No")


if __name__ == '__main__':
    main()

Fixed submission:

def main():
    _len = int(input())
    _str = input()

    if _len < 0 or _len > 100 or _len % 2 : 
        print("No")
        return
    idx = int(_len/2)
    a, b = _str[:idx], _str[idx:]

    print("Yes" if a == b else "No")


if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
a = input()
print(int(a * a))

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

Buggy python submission (verdict: Runtime Error):
a = input()
print(a * a)

Fixed submission:
a = int(input())
print(a**2)
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input().strip()

head = s[0:(n/2)]
tail = s[(n/2):]

result = 'No'
if head == tail:
    result = 'Yes'

print(result)

Fixed submission:
n = int(raw_input())
s = raw_input()

head = s[0:(n/2)]
tail = s[(n/2):]

result = 'No'
if head == tail:
    result = 'Yes'

print(result)
Buggy python submission (verdict: Runtime Error):
print(int(input)**2)

Fixed submission:
print(int(input())**2)

Buggy python submission (verdict: Runtime Error):
print(input()**2)

Fixed submission:
print(int(input())**2)
Buggy python submission (verdict: Runtime Error):
str_len,input_str = map(str, str(input()).split('\n'))
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
str_len,input_str = input().split('\n')
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
str_len,input_str = map(str, input().split())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
input_str = input()
str_len = len(input_str)
if(str_len % 2 == 0 and input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
input_str = input()
str_len = len(input_str)
if(str_len % 2 == 0 && input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
input_str = input()
str_len = len(input_str)
if(len % 2 == 0 && input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")
  

Fixed submission:
str_len = int(input())
input_str = str(input())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
circle_1 = 1 * 1 * 3.16

if r < 1 or r > 100:
  False
else:
  circle_r = r * r * 3.16
  return circle_r / circle_1


Fixed submission:
r = int(input())
print (r * r)
Buggy python submission (verdict: Runtime Error):
import sys

args = sys.argv
r = int(args[1])
g = int(args[2])
b = int(args[3])

mul = r*100 + g*10 + b

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


Fixed submission:
r,g,b = [int(x) for x in input().split()]

mul = r*100 + g*10 + b

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

Buggy python submission (verdict: Runtime Error):
import sys

args = sys.argv
r = int(args[1])
g = int(args[2])
b = int(args[3])

mul = r*100 + g*10 * b

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


Fixed submission:
r,g,b = [int(x) for x in input().split()]

mul = r*100 + g*10 + b

if mul % 4 == 0:
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
from sys import stdin

def main():
    n = stdin.readline()
    if(n[0] == n[1] and n[1] == n[2]):
        print("Yes")
    elif(n[1] == n[2] and n[2] == n[3]):
        print("Yes")
    else:
        prinnt("No")

if __name__ == '__main__':
    main()

Fixed submission:
from sys import stdin

def main():
    n = stdin.readline()
    if(n[0] == n[1] and n[1] == n[2]):
        print("Yes")
    elif(n[1] == n[2] and n[2] == n[3]):
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
import copy
 
kaisu = int(input())
 
s_suji_list = input().split(' ')
suji_list = []
count = 0
cotinule_flg = True
for suji in s_suji_list:
  i_suji = int(suji)
  if suji % 2 == 0:
    suji_list.append(suji / 2)
  else:
    continue_flg = False
    break
count = 1
 
while(continue_flg):
  temp_list = copy.copy(suji_list)
  suji_list.clear()
  count += 1
  for suji in temp_list:
    if suji % 2 == 0:
      suji_list.append(suji / 2)
    else:
      count -= 1
      continue_flg = False
      break
 
print(count)

Fixed submission:
import copy
 
kaisu = int(input())
 
s_suji_list = input().split(' ')
suji_list = []
count = 1
continue_flg = True
for suji in s_suji_list:
  i_suji = int(suji)
  if i_suji % 2 == 0:
    suji_list.append(i_suji / 2)
  else:
    continue_flg = False
    count = 0
    break
 
while(continue_flg):
  temp_list = copy.copy(suji_list)
  suji_list.clear()
  count += 1
  for suji in temp_list:
    if suji % 2 == 0:
      suji_list.append(suji / 2)
    else:
      count -= 1
      continue_flg = False
      break
 
print(count)

Buggy python submission (verdict: Runtime Error):
import copy

kaisu = int(input())

s_suji_list = input().split(' ')
suji_list = []
count = 0
cotinule_flg = true
for suji in s_suji_list:
  i_suji = int(suji)
  if suji % 2 == 0:
    suji_list.append(suji / 2)
  else:
    continue_flg = false
    break
count = 1

while(continue_flg):
  temp_list = copy.copy(suji_list)
  suji_list.clear()
  count += 1
  for suji in temp_list:
    if suji % 2 == 0:
      suji_list.append(suji / 2)
    else:
      count -= 1
      continue_flg = false
      break

print(count)

Fixed submission:
import copy
 
kaisu = int(input())
 
s_suji_list = input().split(' ')
suji_list = []
count = 1
continue_flg = True
for suji in s_suji_list:
  i_suji = int(suji)
  if i_suji % 2 == 0:
    suji_list.append(i_suji / 2)
  else:
    continue_flg = False
    count = 0
    break
 
while(continue_flg):
  temp_list = copy.copy(suji_list)
  suji_list.clear()
  count += 1
  for suji in temp_list:
    if suji % 2 == 0:
      suji_list.append(suji / 2)
    else:
      count -= 1
      continue_flg = False
      break
 
print(count)
Buggy python submission (verdict: Runtime Error):
r = int(input())
return(r**2)

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
r = input()
print(r**2/1)


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

Buggy python submission (verdict: Runtime Error):
r = input()
ptrint(r**2/1)

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

Buggy python submission (verdict: Runtime Error):
x=r^2/1
print(X)

Fixed submission:
r = int(input())
print(r**2)
Buggy python submission (verdict: Runtime Error):
a = int(input())
print(3a**2)

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