Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a,b,c == list(map(int,input().split()))

if a == b == c:
    print(1)
elif a == b or a == c or b == c:
    print(2)
else:
    print(3)


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

if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)

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

if a == b == c:
    print(1)
elif a == b or a == c or b == c:
    print(2)
else:
    print(3)


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

if a==b and b==c:
    print(1)
elif a==b or b==c or c==a:
    print(2)
else:
    print(3)
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding: utf-8 -*-

N=int(input())
T=input().split()
X=[]
for i in range(int(input())):
    X.append(input().split()[1])
    
T=list(map(int,T))
X=list(map(int,X))
for y in range(len(X)):
    T_tmp = T
    X_tmp = X
    T_tmp[y] = X_tmp[y]
    print(sum(T_tmp))
    

Fixed submission:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

i = input().split()
if i[1] == '+':
    print(int(i[0])+int(i[2]))
if i[1] == '-':
    print(int(i[0])-int(i[2]))

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding: utf-8 -*-

N=int(input())
T=input().split()
X=[]
for i in range(int(input())):
    X.append(input().split()[1])
    
T=list(map(int,T))
X=list(map(int,X))
for y in range(len(X)):
    T[y]=X[y]
    print(sum(T))
    

Fixed submission:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

i = input().split()
if i[1] == '+':
    print(int(i[0])+int(i[2]))
if i[1] == '-':
    print(int(i[0])-int(i[2]))
Buggy python submission (verdict: Time Limit Exceeded):
s = list(input())
K = int(input())

for i in range(len(s)):
    if s[i] == "a":
        pass
    elif 123 - ord(s[i]) <= K:
        K -= (123 - ord(s[i]))
        s[i] = 'a'

while K > 0:
    K -= 1
    if s[-1] == "z":
        s[-1] = "a"
    else:
        s[-1] = chr(ord(s[-1]) + 1)
print("".join(s))

Fixed submission:
s = list(input())
K = int(input())

for i in range(len(s)):
    if s[i] == "a":
        pass
    elif 123 - ord(s[i]) <= K:
        K -= (123 - ord(s[i]))
        s[i] = 'a'

K = K % 26
while K > 0:
    K -= 1
    if s[-1] == "z":
        s[-1] = "a"
    else:
        s[-1] = chr(ord(s[-1]) + 1)
print("".join(s))
Buggy python submission (verdict: Runtime Error):
import sys
sys.setrecursionlimit(10**5)

S = list(input())
L = len(S)
b = S.count("B")
w = S.count("W")

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
elif b == L or w == L:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)

Fixed submission:
import sys
sys.setrecursionlimit(1000000)

S = list(input())
L = len(S)
b = S.count("B")
w = S.count("W")

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
elif b == L or w == L:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)

Buggy python submission (verdict: Runtime Error):
S = list(input())
L = len(S)
b = S.count("B")
w = S.count("W")

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
elif b == L or w == L:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)

Fixed submission:
import sys
sys.setrecursionlimit(1000000)

S = list(input())
L = len(S)
b = S.count("B")
w = S.count("W")

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
elif b == L or w == L:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)

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

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)

Fixed submission:
import sys
sys.setrecursionlimit(1000000)

S = list(input())
L = len(S)
b = S.count("B")
w = S.count("W")

def f(i, result):
  if S[i] == S[i-1]:
    if i == 1:
      print(result)
      exit()
    else:
      f(i-1, result)
  else:
    if i == 1:
      result += 1
      print(result)
      exit()
    else:
      result += 1
      f(i-1, result)
      
if L == 1:
  result = 0
  print(result)
  exit()
elif b == L or w == L:
  result = 0
  print(result)
  exit()
else:
  f(L-1, 0)
Buggy python submission (verdict: Runtime Error):
import math

n = int(input())
s = int(input())

b = -1

def keisan(k, w):
  l = []
  while k >= w:
    l.append(k % w)
    k = k // w
  else:
    l.append(k)
  return (sum(l))

if n == s:
  b = n + 1
  print(b)
  exit()
  
if n < s:
  b = -1
  print(b)
  exit()

n_r = math.floor(math.sqrt(n))

for i in range(2, n_r+1):
  if keisan(n, i) == s:
    b = i
    print(b)
    exit()

for i in range(1, n_r+1):
  w = n - s
  syou = w // i
  amari = w % i
  if syou > n_r-1 and amari == 0:
    b_list = []
    b_kouho = syou + 1
    b_list.append(b_kouho)
  
if b_list != []:
  print(min(b_list))
else:
  print(-1)

Fixed submission:
import math

n = int(input())
s = int(input())

b = -1

def keisan(k, w):
  l = []
  while k >= w:
    l.append(k % w)
    k = k // w
  else:
    l.append(k)
  return (sum(l))

if n == s:
  b = n + 1
  print(b)
  exit()
  
if n < s:
  b = -1
  print(b)
  exit()

n_r = math.floor(math.sqrt(n))

for i in range(2, n_r+1):
  if keisan(n, i) == s:
    b = i
    print(b)
    exit()

b_list = []    
    
for i in range(1, n_r+1):
  w = n - s
  syou = w // i
  amari = w % i
  if amari == 0:
    b_kouho = syou + 1
    b_list.append(b_kouho)
#    print(b_list)

b_kansei = []

for b in b_list:
  b_ = keisan(n, b)
  if b_ == s:
    b_kansei.append(b)
#    print("b_kanseiは" + str(b_kansei))

if b_kansei != []:
  print(min(b_kansei))
else:
  print(-1)
Buggy python submission (verdict: Time Limit Exceeded):
s = list(input())
l = len(s)

W = 0

def f(n):
  for i in range(1, l-n+1):
    global W
    if W == 1: break
    slice = s[n-1:n+i]
    ls = len(slice)
#    print("切り出した文字列の長さlsは" + str(ls))
    y = list(set(slice))
    ly = len(y) #重複を消した後の文字数
#    print(y)
    for j in range(0, ly):
      sc = slice.count(y[j])
#      print(y[j] + "は" + str(sc) + "個") #文字の個数カウント
      if ls - sc >= sc: #その文字の個数が切り出した文字列の半分以下ならば
#        print(n)
#        print("lyは" + str(ly))
        if ly == 2 and n == l-1: 
          print(-1, -1)
          break
        pass
      else:
#        print("unbalance")
        print(n, n+i)
        W = 1
        break
      
for i in range(1, l):
  if W == 1: break
  f(i)

Fixed submission:
from sys import exit

s = input()
l = len(s)

for i in range(l-2):
  if s[i] == s[i+1]:
    print(i+1, i+3)
    exit()
  if s[i] == s[i+2]:
    print(i+1, i+3)
    exit()

if s[l-2] == s[l-1]:
  print(l-1, l)
else:
  print(-1, -1)
Buggy python submission (verdict: Runtime Error):
c=input()
if c=="a" or c=="e" or c=="i" or c=="o" or c=="u" :
print("vowel")
else:
print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")

Buggy python submission (verdict: Runtime Error):
c=input()
if c==a or c==e or c==i or c==o or c==u :
  print("vowel")
else:
  print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")

Buggy python submission (verdict: Runtime Error):
c=input()
if c==a or c==e or c==i or c==o or c==u :
print("vowel")
else:
print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")

Buggy python submission (verdict: Runtime Error):
c=input()
if c=a or c=e or c=i or c=o or c=u :
print("vowel")
else:
print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")

Buggy python submission (verdict: Runtime Error):
c=input()
if c=a or c=e or c=i or c=o or c=u
print("vowel")
else
print("consonant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")

Buggy python submission (verdict: Runtime Error):
c=input()
if c=a or c=e or c=i or c=o or c=u
print("vowel")
else
print("constant")

Fixed submission:
c = input()
if c == "a" or c == "e" or c == "i" or c == "o" or c == "u":
  print("vowel")
else:
  print("consonant")
Buggy python submission (verdict: Runtime Error):
# coding:utf-8
 
x, y, z = [int(i) for i in input().split()]
if x = 5 and y = 7 and z = 5:
  print("YES")
elif x = 7 and y = 5 and z = 5:
  print("YES")
elif x = 5 and y = 5 and z = 7:
  print("YES")
else:
  print("NO")

Fixed submission:
# coding:utf-8
 
x, y, z = list(map(int, input().split()))
if x == 5 and y == 7 and z == 5:
  print("YES")
elif x == 7 and y == 5 and z == 5:
  print("YES")
elif x == 5 and y == 5 and z == 7:
  print("YES")
else:
  print("NO")

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

x, y, z = list(map(int, input().split()))
if x = 5 and y = 7 and z = 5:
  print("YES")
elif x = 7 and y = 5 and z = 5:
  print("YES")
elif x = 5 and y = 5 and z = 7:
  print("YES")
else:
  print("NO")

Fixed submission:
# coding:utf-8
 
x, y, z = list(map(int, input().split()))
if x == 5 and y == 7 and z == 5:
  print("YES")
elif x == 7 and y == 5 and z == 5:
  print("YES")
elif x == 5 and y == 5 and z == 7:
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Time Limit Exceeded):
(N,T)=map(int,input().split())
a=list(map(int,input().split()))
counter=0
max=0
for i in range(len(a)-1,-1,-1):
    for j in range(0,i):
        if a[i]-a[j] > max:
            max=a[i]-a[j]
for i in range(len(a)-1,-1,-1):
    for j in range(0,i):
        if a[i]-a[j] == max:
            counter+=1
print(counter)


Fixed submission:
(N,T)=map(int,input().split())
a=list(map(int,input().split()))
x=10**9
d=0
counter=0
for i in a:
    if i<x:
        x=i
    elif i-x>d:
        d=i-x
        counter=1
    elif i-x==d:
        counter+=1
print(counter)
Buggy python submission (verdict: Runtime Error):
        a = input().split()
        i = int(a[0])
        d = int(a[1])
        x = int(a[2])
        rd = d / x
        ri = (i - 1) / x
        if (ri < 0):
          ri = -1
        print(rd - ri)

Fixed submission:
a = input().split()
i = int(a[0])
d = int(a[1])
x = int(a[2])
rd = d // x
ri = (i - 1) // x
if (ri < 0):
	ri = -1
print(rd - ri)

Buggy python submission (verdict: Runtime Error):
    a = input()
    a.split()
    i = int(a[0])
    d = int(a[1])
    x = int(a[2])
    rd = d / x
    ri = (i - 1) / x
    if (ri < 0):
      ri = -1
    print(rd - ri)

Fixed submission:
a = input().split()
i = int(a[0])
d = int(a[1])
x = int(a[2])
rd = d // x
ri = (i - 1) // x
if (ri < 0):
	ri = -1
print(rd - ri)

Buggy python submission (verdict: Runtime Error):
a = input()
a.split()
i = (int)a[0]
d = (int)a[1]
x = (int)a[2]
rd = d / x
ri = (i - 1) / x
if (ri < 0):
  ri = -1
print(rd - ri)

Fixed submission:
a = input().split()
i = int(a[0])
d = int(a[1])
x = int(a[2])
rd = d // x
ri = (i - 1) // x
if (ri < 0):
	ri = -1
print(rd - ri)
Buggy python submission (verdict: Runtime Error):
inp = input()
H = int(inp.split()[0])
W = int(inp.split()[1])
l = []
for i in range(H):
    l.append(list(input().split()))

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + l[(i+1)/2][j]
    print(line)


Fixed submission:
inp = input()
H = int(inp.split()[0])
W = int(inp.split()[1])
l = []
for i in range(H):
    l.append(list(input()))

for i in range(H*2):
    line = ""
    for j in range(W):
        line = line + l[int((i)/2)][j]
    print(line)

Buggy python submission (verdict: Runtime Error):
inp = input()
H = inp.split()[0]
W = inp.split()[1]
l = []
for i in range(H):
    l.append(input().split())

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + l[(i+1)/2][j]
    print(line)


Fixed submission:
inp = input()
H = int(inp.split()[0])
W = int(inp.split()[1])
l = []
for i in range(H):
    l.append(list(input()))

for i in range(H*2):
    line = ""
    for j in range(W):
        line = line + l[int((i)/2)][j]
    print(line)

Buggy python submission (verdict: Runtime Error):
inp = input()
H = inp.split()[0][0]
W = inp.split()[0][0]
l = []
for i in range(H):
    l.append(inp[i+1])

for i in range(H*2):
    line = []
    for j in range(W):
        line = line + inp[(i+2)/2][j]
    print(line)


Fixed submission:
inp = input()
H = int(inp.split()[0])
W = int(inp.split()[1])
l = []
for i in range(H):
    l.append(list(input()))

for i in range(H*2):
    line = ""
    for j in range(W):
        line = line + l[int((i)/2)][j]
    print(line)
Buggy python submission (verdict: Runtime Error):
a = [a,i,u,e,o]
n = str(input())

if n in a:
    print('vowel')
else:
    print('consonant')

Fixed submission:
a = ['a','i','u','e','o']
n = str(input())
 
if n in a:
    print('vowel')
else:
    print('consonant')

Buggy python submission (verdict: Runtime Error):
i = int(input())
 
if i = a :
    print("vowel")
elif i = i:
    print("vowel")
elif i = u:
        print("vowel")
elif i = e:
        print("vowel")
elif i = o:
    print("vowel")
else:
    print("consonant")

Fixed submission:
a = ['a','i','u','e','o']
n = str(input())
 
if n in a:
    print('vowel')
else:
    print('consonant')

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

if i = a :
    print("vowel")
elif i = i:
    print("vowel")
elif i = u:
        print("vowel")
elif i = e:
        print("vowel")
elif i = o:
    print("vowel")
else:
    print("consonant")

Fixed submission:
a = ['a','i','u','e','o']
n = str(input())
 
if n in a:
    print('vowel')
else:
    print('consonant')

Buggy python submission (verdict: Runtime Error):
while True:
    n = raw_input()
    if n in ['a','e','i','o','u']:
        print 'vowel'
    else:
        print 'consonant'


Fixed submission:
n = raw_input()
if n in ['a','e','i','o','u']:
    print 'vowel'
else:
    print 'consonant'

Buggy python submission (verdict: Runtime Error):
while True:
    n = input()
    if n in ['a','e','i','o','u']:
        print 'vowel'
    else:
        print 'consonant'

Fixed submission:
n = raw_input()
if n in ['a','e','i','o','u']:
    print 'vowel'
else:
    print 'consonant'
Buggy python submission (verdict: Runtime Error):
N , L = map(int,input().sqlit())
S.list()
for i in range(N):
  S.append(input())
S.sort()
for i in range(S):
  print(i)

Fixed submission:
N , L = map(int,input().split())
str = []
for i in range(N):
    str.append(input())
str.sort()
result = ""
for j in str:
    result += j
print(result)
Buggy python submission (verdict: Runtime Error):
L = [int(i) for i in input().split()]<
<
if (L.count(5) == 2 and L.count(7) == 1):<
    print("YES")<
else:<
    print("NO")<

Fixed submission:
L = [int(i) for i in input().split()]

if (L.count(5) == 2 and L.count(7) == 1):
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
s = input().strip()
strings = "eraser erase dreamer dream".split()
exceptions = "dreameraser dreamerase".split()
while 1:
  for string in strings:
    if s.startswith(string):
      if string == "dreamer":
        for exception in exceptions:
          if startswith(exception):
            s = s[len(exception):]
      else:
s = s[len(string):]
      break
  else:
    break
print("NO" if s else "YES")

Fixed submission:
dream, erase = "dream erase".split()

s = input().strip()
while 1:
  if s.startswith(dream):
     s = s[5:]
     if s.startswith("er") and not s.startswith("era"):
       s = s[2:]
  elif s.startswith(erase):
    s = s[5:]
    if s.startswith('r'):
      s = s[1:]
  else:
    break
print("NO" if s else "YES")
Buggy python submission (verdict: Runtime Error):
arr = list(input().split())
print(arr[0].[0] + arr[1].[0] + arr[2].[0])

Fixed submission:
arr = list(input().split())
print(arr[0][0] + arr[1][0] + arr[2][0])
Buggy python submission (verdict: Runtime Error):
=int(input())
b=int(input())
h=int(input())

s=(a+b)*h/2

print(int(s))

Fixed submission:
a=int(input())
b=int(input())
h=int(input())

s=(a+b)*h/2
print(int(s))
Buggy python submission (verdict: Runtime Error):
val1=int(input())

print(val1*(val1+1)/)

Fixed submission:
val1=int(input())
print(int(val1*(val1+1)/2))
Buggy python submission (verdict: Runtime Error):
val1=list(map(int,input().split()))
val2=[input() for i in range(val1[0])]

val2.sort()
print("".join(val2))


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

if val1.count(5)==2 and val1.count(7)==1:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
val1=list(map(int,input().split()))
val2=[input() for i in range(val1[0])]

val2.sort()
print("".join(val2))

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

if val1.count(5)==2 and val1.count(7)==1:
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Time Limit Exceeded):
a,b,c=input().split()
d=0
for i in range(int(a),int(b)+1):
  if i%int(c)==0:
    d+=1
print(d)

Fixed submission:
a, b, c = map(int, input().split())
if a == 0:
  print(b // c+1)
  exit()
print(b // c - (a-1) // c)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,c=map(int,input().split())
d=0
for i in range(a,b+1):
  if i%c==0:
    d+=1
print(d)

Fixed submission:
a, b, c = map(int, input().split())
if a == 0:
  print(b // c+1)
  exit()
print(b // c - (a-1) // c)
Buggy python submission (verdict: Runtime Error):
lst = list(map(int,input().strip()))
N = lst[0]
K = lst[1]
print(K * (N-1)*(K-1))


Fixed submission:
N,K = map(int,input().split())
print(K * (K-1)**(N-1))

Buggy python submission (verdict: Runtime Error):
lst = list(map(int,input().strip()))
N = lst[0]
K = lst[1]
total = K * (N-1)*(K-1)


Fixed submission:
N,K = map(int,input().split())
print(K * (K-1)**(N-1))
Buggy python submission (verdict: Runtime Error):
    i = list(map(int, input().split()))
    i.sort()
    if i[2] == i[0]+i[1]:
      print('Yes')
    else:
      print('No')

Fixed submission:
a,b,c = map(int,input().split())
if a+b == c or b+c == a or c+a == b:
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
l=[int(input() for i in range(3))]
l.sort()
if l[2]==(l[0]+l[1]+l[2])/2:
  print('YES')
else:
  print('NO')

Fixed submission:
a,b,c = map(int,input().split())
if a+b == c or b+c == a or c+a == b:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
a,b,c = list(map(int, input().split()))
if a==b==c:
  print(1)
elif a==b or b==C or a==c:
  print(2)
else:
  print(3)

Fixed submission:
x,y,z = map(int,input().split())
if x == y and y==z:
  print(1)
elif x == y or y == z or z ==x :
  print(2)
else:
  print(3)

Buggy python submission (verdict: Runtime Error):
a,b,c = list(map(int, input().split()))
if a==b==c:
  print(1)
elif (a==b and b != c) or (a!=b and b==C) or (a==c and a!=b):
  print(2)
else:
  print(3)

Fixed submission:
x,y,z = map(int,input().split())
if x == y and y==z:
  print(1)
elif x == y or y == z or z ==x :
  print(2)
else:
  print(3)

Buggy python submission (verdict: Runtime Error):
l= [int(input()) for in range(3)]
c = collections.Counter(l)

print(len(c))

Fixed submission:
x,y,z = map(int,input().split())
if x == y and y==z:
  print(1)
elif x == y or y == z or z ==x :
  print(2)
else:
  print(3)
Buggy python submission (verdict: Runtime Error):
        # -*- coding: utf-8 -*-
        N=int(input())
        for i in range(N+1):
          i+=i
        print(i)

Fixed submission:
# -*- coding: utf-8 -*-
N=int(input())
s=0
for i in range(N+1):
    s += i
print(s)

Buggy python submission (verdict: Runtime Error):
    # -*- coding: utf-8 -*-
    N=int(input())
    for i in range(N+1):
      i+=i
    print(s)

Fixed submission:
# -*- coding: utf-8 -*-
N=int(input())
s=0
for i in range(N+1):
    s += i
print(s)

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
N=int(input())
for i in range(N+1):
  s+=i
print(s)

Fixed submission:
# -*- coding: utf-8 -*-
N=int(input())
s=0
for i in range(N+1):
    s += i
print(s)
Buggy python submission (verdict: Runtime Error):
# 入力
N,L=map(int,input().split())

l=[]
for i in range(N):
  l.append(input())

# ソート
l.sort()

# 出力
print(''.join(l))

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
n, l = map(int, input().split())
s = []
for i in range(n):
    s.append(input())
print(''.join(sorted(s)))

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
for i in range(N):
    l.append(input())
    l.sort()
print(l)

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
s=N*L
for i in range(s):
    l.append(input())
l.sort()
print(l)

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
N,L = list(map(int, input().split()))
l=[]
for i in range(N*L):
    l.append(input())
l.sort()
print(l)

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
ABC= A_B_C.soreted()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')

Fixed submission:
# -*- coding: utf-8 -*-
A_B_C = list(map(int, input().split()))
A_B_C.sort()
if A_B_C == [5,5,7]:
    print('YES')
else:
    print('NO')
Buggy python submission (verdict: Runtime Error):
print(len(a=set(input()))-1)

Fixed submission:
a = set(input().split())
print(len(a))

Buggy python submission (verdict: Runtime Error):
print(len(set(input())-1)

Fixed submission:
a = set(input().split())
print(len(a))