Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
#B
H,W = map(int, input().split())
s=H*W
if ((H==1) or (W==1)):
    ans = 1
elif (s%2) ==0:
    ans = (s//2)
else:
    ans = ((s+1)//2)
print(ans)

Fixed submission:
arr = [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]
K = int(input())
print(arr[K-1])
Buggy python submission (verdict: Runtime Error):
N = input()
mojis = ["a","b","c","d","e","f","g","h","i","j"]
def append_m(moji):
    arr = []
    for i in mojis[:len(set(moji))+1]:
        arr.append(moji+i)
    return arr
arr = ["a"]
for i in range(N-1):
    tmp = []
    for j in arr:
        tmp += append_m(j)
    arr = tmp
for i in arr:
    print(i)

Fixed submission:
N = int(input())
mojis = ["a","b","c","d","e","f","g","h","i","j"]
def append_m(moji):
    arr = []
    for i in mojis[:len(set(moji))+1]:
        arr.append(moji+i)
    return arr

arr = ["a"]
for i in range(N-1):
    tmp = []
    for j in arr:
        tmp += append_m(j)
    arr = tmp
for i in arr:
    print(i)
Buggy python submission (verdict: Runtime Error):
inputValue=input()

l=inputValue.split(" ")
d=int(l[0])
t=int(l[1])
s=int(l[2])

if (d/float(s))<=t:
	print "Yes"
else:
	print"No"

Fixed submission:
inputValue=input()

l=inputValue.split(" ")
D=int(l[0])
T=int(l[1])
S=int(l[2])

if (D/float(S))<=T:
	print ("Yes")
else:
	print("No")
Buggy python submission (verdict: Runtime Error):
card = []       #リスト型の変数カードを定義する。
for i in range(3):      #変数カードに三列のリスト型の数字を三行文加える。
    card.append(list(map(int,input().split())))

N = int(input())        #呼ばれる数字の数を指定する。

result = [[0,0,0],[0,0,0],[0,0,0]]      #変数resultを定義する。
for _ in range(N):      #以下の動作をN回繰り返す。
    b = int(input())        #数字を読み上げる。
    for i in range(3):      #bがAijと対応していた場合、変数resultのAijと同じ位置に1を代入する。
        for j in range(3):
            if b == card[i][j]:
                result[i][j] = 1

judge = "No"        #以下の条件に当てはまらなければNoと表示する

for i in range(3):      #横のビンゴの確認
    if result[i][0] * result[i][1] * result[i][2] == 1:
        judge = "Yes"

for i in range(3):      #縦のビンゴの確認
    if result[0][i] * result[1][i]*result[2][i] == 1:
        judge = "Yes"

if result[0][0] * result[1][1] * result[2][2] == 1:     #斜めのビンゴの確認
    judge = "Yes"

if result[0][2] * result[1][1] : result[2][1] == 1:     #斜めのビンゴの確認
    judge = "Yes"

print(judge)    
 

Fixed submission:
card = []       #リスト型の変数カードを定義する。
for i in range(3):      #変数カードに三列のリスト型の数字を三行文加える。
    card.append(list(map(int,input().split())))

N = int(input())        #呼ばれる数字の数を指定する。

result = [[0,0,0],[0,0,0],[0,0,0]]      #変数resultを定義する。
for _ in range(N):      #以下の動作をN回繰り返す。
    b = int(input())        #数字を読み上げる。
    for i in range(3):      #bがAijと対応していた場合、変数resultのAijと同じ位置に1を代入する。
        for j in range(3):
            if b == card[i][j]:
                result[i][j] = 1

judge = "No"        #以下の条件に当てはまらなければNoと表示する

for i in range(3):      #横のビンゴの確認
    if result[i][0] * result[i][1] * result[i][2] == 1:
        judge = "Yes"

for i in range(3):      #縦のビンゴの確認
    if result[0][i] * result[1][i] * result[2][i] == 1:
        judge = "Yes"

if result[0][0] * result[1][1] * result[2][2] == 1:     #斜めのビンゴの確認
    judge = "Yes"

if result[0][2] * result[1][1] * result[2][0] == 1:     #斜めのビンゴの確認
    judge = "Yes"

print(judge)
Buggy python submission (verdict: Runtime Error):
ount = 0       #初期値を0とするcount変数を作る.
n,k = map(int,input().split())      #整数とn進数を入力する。

while True:         #nをkで割った商が0になるまでcountに1を足し続ける。
    count = count +1
    n = n // k
    if n == 0:
        break

print(count)


Fixed submission:
count = 0       #初期値を0とするcount変数を作る.
n,k = map(int,input().split())      #整数とn進数を入力する。

while n > 0:         #nをkで割った商が0になるまでcountに1を足し続ける。
    count += 1
    n //= k

print(count)

Buggy python submission (verdict: Runtime Error):
n,k = map(int,input())
lis = []

while n / k == 0:
    if n >k：
        lis.append(int(n % k))
        ing_total += 1
    else:
        if n >= 10:
            ing_total = 2
        else:
            ing_total = 1

print(ing_total)


Fixed submission:
count = 0       #初期値を0とするcount変数を作る.
n,k = map(int,input().split())      #整数とn進数を入力する。

while n > 0:         #nをkで割った商が0になるまでcountに1を足し続ける。
    count += 1
    n //= k

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

for i in range(n):
    if admission[n] % 2 == 0:
        if admission[n] % 3 == 0 or admission[n] % 5 == 0:
            print("APPROVED")
        else:
            print("DENIED")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

sum_distance = set(["a","b","c"])

if len(sum_distance) == 2:
    print("Yes)
else:
    print("No")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

s = set(["a","b","c"])

if len(s) == 2:
    print("Yes)
else:
    print("No")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

s = set([a,b,c)]

if len(s) == 2:
    print("Yes)
else:
    print("No")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

a = set(a,b,c)

if len(a) == 2:
    print("Yes)
else:
    print("No")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

s = set([a,b,c])

if len(s) = 2:
  print("Yes")
else:
  print("No")


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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

s = set(["a","b","c"])

if len(s) = 2:
  print("Yes")
else:
  print("No")

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

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


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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

if a == b:
  print("No")
else a!= b:
  if c == a:
    print("Yes")
  else:
    if c ==b:
      print("Yes")
    else:
      print("No")
  

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")

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

if a != b:
  if b==c:
    print("Yes")
  else:
    print("No")
elif a == b:
  print("Yes")
else:
  print("Yes")

  
  

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

s = set([a,b,c])

if len(s) == 2:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
s,t = input().split())
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

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

if s == u:
    gap = a -1
    print(gap,b)
else:
    gap = b -1
    print(a,gap)

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

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

if s == u and not t == u:
    gap = a -1
    print(int(gap),b)
else:
    gap = b -1
    print(a,int(gap))

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

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

if s = u and not t = u:
    gap = a -1
    print(int(gap),b)
else:
    gap = b -1
    print(a,int(gap))s

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

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

if s = u and not t = u:
    gap = a -1
    print(int(gap))
else:
    gap = b -1
    print(int(gap))s

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)

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

if s = u:
  ball_gap = a -1
  print(ball_gap)
elif t = u:
  ball_gap = b -1
  print(ball_gap)
  

Fixed submission:
s,t = input().split()
a,b = map(int,input().split())
u = input()

if s == u:
    print(a -1,b)
else:
    print(a,b-1)
Buggy python submission (verdict: Runtime Error):
s = input()
a = int(len(s))
print("x" * s)

Fixed submission:
s = input()
a = len(s)
print("x" * a)

Buggy python submission (verdict: Runtime Error):
s = input()
a = len(s)
print("x" * s)

Fixed submission:
s = input()
a = len(s)
print("x" * a)
Buggy python submission (verdict: Runtime Error):
a,b = input().split()
A = int(a * int(b))
B = int(b * int(a))

lis=[A,B]
true_list = lis.sort()
print(str(true_list[0]))

Fixed submission:
a,b = input().split()
A = int(a * int(b))
B = int(b * int(a))

if A >= B:
    print(str(A))
else:
    print(str(B))

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

lis=[A,B]
true_list = lis.sort(reverse=True)
print(true_list[0])

Fixed submission:
a,b = input().split()
A = int(a * int(b))
B = int(b * int(a))

if A >= B:
    print(str(A))
else:
    print(str(B))

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

lis=[A,B]
true_list = lis.sort()
print(true_list[0])

Fixed submission:
a,b = input().split()
A = int(a * int(b))
B = int(b * int(a))

if A >= B:
    print(str(A))
else:
    print(str(B))
Buggy python submission (verdict: Runtime Error):
al = list("abcdefghijklmnopqistuvwxyz")

c = input()

print(al[al.index(c)]

Fixed submission:
al = list("abcdefghijklmnopqistuvwxyz")

c = input()

print(al[al.index(c)+1])
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input()
s2 = "ABC"
print(n.count(s2))

Fixed submission:
n = int(input())
s = input()
print(s.count("ABC"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input())
ing_total = 0
for i in range(n):
    if s[i] == "A":
        if s[i + 1] == "B":
            if s[i+2] == "C":
                ing_total+= 1
print(ing_total)


Fixed submission:
n = int(input())
s = input()
print(s.count("ABC"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input())
ing_total = 0

while i < n - 2
    if s[i] == "A":
        if s[i + 1] == "B":
            if s[i+2] == "C":
                ing_total+= 1
print(ing_total)


Fixed submission:
n = int(input())
s = input()
print(s.count("ABC"))
Buggy python submission (verdict: Time Limit Exceeded):
a,b,k = map(int,input().split())

for i in range(k):
    if a > 0:
        a-=1
    else:
        if b > 0:
            b-=1
        else:
            break

print(a,b)


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

if a > k:
    print(a-k,b)
elif a+b> k:
    print(0,b-(k-a))
else:
    print(0,0)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,k = map(int,input().split())

for i in range(k):
    if a > 0:
        a-=1
    else:
        if b > 0:
            b-=1
        else:
            break

print(a,b)


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

if a > k:
    print(a-k,b)
elif a+b> k:
    print(0,b-(k-a))
else:
    print(0,0)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a)
remain = al.remove(b)
print(remain[0])




Fixed submission:
a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[0])

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain[0])



Fixed submission:
a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[0])

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a)
re_remain = remain.remove(b)
print(re_remain)


Fixed submission:
a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[0])

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
al = [1,2,3]

remain = al.remove(a,b)

print(remain)


Fixed submission:
a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[0])

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
al = list([1,2,3])

remain = al.remove(a,b)

print(remain)


Fixed submission:
a = int(input())
b = int(input())
al = [1,2,3]

al.remove(a)
al.remove(b)
print(al[0])
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = input()

for ss in s:
    i = ord(ss)
    i += n
    if i > 90:
        i -= 26
    ss = chr(i)
    print(ss,end="")

Fixed submission:
s = input()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)

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

for ss in s:
    i = ord(ss)
    i += n
    if i > 90:
        i -= 26
    ss = chr(i)
    print(ss,end="")

Fixed submission:
s = input()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)

Buggy python submission (verdict: Runtime Error):
day = input()
next_sunday = {1:"SAT",2:"FRI",3:"THU",4:"WED",5:"TUE",6:"MON",7:"SUN"}
value = next_sunday[day]
print(value)

Fixed submission:
s = input()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)

Buggy python submission (verdict: Runtime Error):
day_ = input()
next_sunday = {7:"SUN",6:"MON",5:"TUE",4:"WED",3:"THU",2:"FRI",1:"SAT"}
value = next_sunday[day_]
print(value)

Fixed submission:
s = input()
lis = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

ans = 7 - lis.index(s)
print(ans)
Buggy python submission (verdict: Runtime Error):
a,b = int(input()),int(input())

if a > 2b:
  print(int(a-2b))
else:
  print(0)

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

if a < 2 *b:
    print(0)
else:
    print(a-2*b)

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

if a > 2b:
  print(int(a - 2b))
else:
  print(0)

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

if a < 2 *b:
    print(0)
else:
    print(a-2*b)
Buggy python submission (verdict: Runtime Error):
import math
n = int(input())

if n % 2 == 0:
    print(1/2)
else:
    pro = math.floor(n /2) +1
    print(pro/

Fixed submission:
n = int(input())

if n % 2 == 0:
    print(1/2)
else:
    pro = int(n/2) +1
    print(pro/n)
Buggy python submission (verdict: Runtime Error):
s = input()
weather = ["Sunny","Cloudy","Rainy"]

a = weather[s]
if a == 2:
    print("Sunny")
else:
    print(weather[a+1])

Fixed submission:
s = input()
weather = ["Sunny","Cloudy","Rainy"]

a = weather.index(s)
if a == 2:
    print("Sunny")
else:
    print(weather[a+1])

Buggy python submission (verdict: Runtime Error):
s = input()
weather = ["Sunny","Cloudy","Rainy"]

a = weather[s]
print(weather[a+1])

Fixed submission:
s = input()
weather = ["Sunny","Cloudy","Rainy"]

a = weather.index(s)
if a == 2:
    print("Sunny")
else:
    print(weather[a+1])
Buggy python submission (verdict: Runtime Error):
print(int()input()*3)

Fixed submission:
print(int(input())**3)
Buggy python submission (verdict: Runtime Error):
s = list(input())
t = list(input())
ing_total = 0

for x in range(2):
    if s[x] == t[x]:
        ing_total+=1
    else:
        ing_total+=0
     print(ing_total)



Fixed submission:
s = list(input())
t = list(input())
ing_total = 0

for x in range(3):
    if s[x] == t[x]:
        ing_total+=1
    else:
        ing_total+=0
print(ing_total)

Buggy python submission (verdict: Runtime Error):
s = list(input())
t = list(input())
ing_total = 0

for x in range(2):
    if s[x] == t[x]:
        ing_total+=1
    print(ing_total

Fixed submission:
s = list(input())
t = list(input())
ing_total = 0

for x in range(3):
    if s[x] == t[x]:
        ing_total+=1
    else:
        ing_total+=0
print(ing_total)
Buggy python submission (verdict: Runtime Error):
n = int(input())
lis = list(map(int,input().split()))
ing_total = 0

for i in range(n):
    ing_total+= 1 / lis[i]

print(int(1/ing_total)


Fixed submission:
n = int(input())
lis = list(map(int,input().split()))
ing_total = 0

for i in range(n):
    ing_total+= 1 / lis[i]

print(1/ing_total)
Buggy python submission (verdict: Runtime Error):
k,x = map(int,input().split())

lis = [x]
x_1 = x
x_2 = x

for i in range(k-1):
    x_1 += 1
    x_2 -= 1
    lis.append(x_1)
    lis.append(x_2)
new_list = sorted(lis)

print(" ".join(new_list))

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

lis = []
for i in range(x-k+1, x+k):
    lis.append(i)

print(" ".join(map(str,lis)))

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

lis = [x]

for i in range(1,k):
    lis.append(x-1)
    lis.append(x+1)
new_list = sorted(lis)

print(" ".join(new_list))

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

lis = []
for i in range(x-k+1, x+k):
    lis.append(i)

print(" ".join(map(str,lis)))
Buggy python submission (verdict: Runtime Error):
s = input()

if s.count(s[0]) == 2 and s.count(s[1])==2 and s.count(as2])==2:
    print("Yes")
else:
    print("No")

Fixed submission:
s = input()

if s.count(s[0]) == 2 and s.count(s[1])==2 and s.count(s[2])==2:
    print("Yes")
else:
    print("No")

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

if s.count(a[0]) == 2 and s.count(a[1])==2 and s.count(a[2])==2:
    print("Yes")
else:
    print("No")

Fixed submission:
s = input()

if s.count(s[0]) == 2 and s.count(s[1])==2 and s.count(s[2])==2:
    print("Yes")
else:
    print("No")

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

if s.count(a[0]) == 2 and a.count(a[1])==2 and a.count(a[2])==2:
    print("Yes")
else:
    print("No")

Fixed submission:
s = input()

if s.count(s[0]) == 2 and s.count(s[1])==2 and s.count(s[2])==2:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
s = list(input())

for i in range(4):
    if s[i] == s[i+1]:
        print("Bad")
        exit()

print("Good")

Fixed submission:
a = input()
for i in range(3):
    if a[i] == a[i+1]:
        print("Bad")
        quit()
print("Good")

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

for i in range(4):
    if s[i] == s[i+1]:
        print("Bad")
    else:
        print("Good")

Fixed submission:
a = input()
for i in range(3):
    if a[i] == a[i+1]:
        print("Bad")
        quit()
print("Good")
Buggy python submission (verdict: Runtime Error):
x,a = map(int,input().split())

if x <a:
    print(o)
else:
    print(10)

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

if x <a:
    print(0)
else:
    print(10)
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
s = max(2*a,2*b,a+b)
if s == 2 *a or s==2*b and 2*a != a+b and 2*b != a+b
    print(s-1)
else:
    print(s)

Fixed submission:
a,b = map(int,input().split())
if a >b:
    print(2*a-1)
elif a == b:
    print(a+b)
else:
    print(2*b-1)
Buggy python submission (verdict: Runtime Error):
8 3

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

print(t/x)
Buggy python submission (verdict: Runtime Error):
x = int(input)
lis = [3,5,7]

for i in range(3):
    if x == lis[i]:
        print("Yes")
    else:
        print("No")

Fixed submission:
x = int(input())
lis = [7,5,3]


if x in lis:
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
k = int(input())

if k % 2 == 0:
    num = k * k /4
else:
    base = (k-1) / 2
    num = base * (base + 1)

print(int(num))

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

if a % 2 == 0 or b % 2 == 0:
    print('No')
else:
    print('Yes')
Buggy python submission (verdict: Runtime Error):
n = input()
plus = n.count('+')
minus = n.count('-')
print(plus_minus)

Fixed submission:
s = input()
total = 0
for i in s:
    if i == '+':
        total+=1
    else:
        total-=1
    

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

Fixed submission:
X,Y,Z=input().split()
print(Z,X,Y)

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

Fixed submission:
X,Y,Z=input().split()
print(Z,X,Y)
Buggy python submission (verdict: Runtime Error):
N = int(input())
 A = [int(x) for x in input().split()]
for i in A:
   	if A.count(i) >= 2:
   	   print('YES')
       return
print('NO')

Fixed submission:
S,T = input().split()
A,B = input().split()
U = input()
if U == S:
    A = int(A)-1
else:
    B = int(B)-1
print(str(A)+' '+str(B))

Buggy python submission (verdict: Runtime Error):
S,T = input().split()
A,B = input().split()
U = input()
if U == S:
    A = int(A)-1
else:
    B = int(B)-1
print(str(A)+' '+str(B))

Fixed submission:
S,T = input().split()
A,B = input().split()
U = input()
if U == S:
    A = int(A)-1
else:
    B = int(B)-1
print(str(A)+' '+str(B))
Buggy python submission (verdict: Runtime Error):
S = input()
char_list = list(S)
new_list=[]
for char  in char_list:
    char = "x"
    new_list.append(char)
output = "".join(new_list)
print(output)

Fixed submission:
S = input()
char_list = list(S)
new_list=[]
for char  in char_list:
    char = "x"
    new_list.append(char)
output = "".join(new_list)
print(output)
Buggy python submission (verdict: Runtime Error):
N = int(input())
A = [int(x) for x in input().split()]
mySet = set()
for i in A:
  if i in mySet:
    print('NO')
    exit()
    else:
      mySet.add(i)
print('YES')

Fixed submission:
N = int(input())
A = [int(x) for x in input().split()]
mySet = set()
for i in A:
  if i in mySet:
    print('NO')
    exit()
  else:
      mySet.add(i)
print('YES')

Buggy python submission (verdict: Runtime Error):
 N = int(input())
 A = [int(x) for x in input().split()]
for i in A:
   	if A.count(i) >= 2:
   	   print('YES')
       return
print('NO')

Fixed submission:
N = int(input())
A = [int(x) for x in input().split()]
mySet = set()
for i in A:
  if i in mySet:
    print('NO')
    exit()
  else:
      mySet.add(i)
print('YES')