Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
mountains_high=[]
for i in range(10):
    mountains_high.append(int(input()))

mountains_high_copy=mountains_high.copy()
for i in range(9):
    for j in range(9):
        if mountains_high_copy[j]>mountains_high_copy[j+1]:
            num=mountains_high_copy[j]
            mountains_high_copy[j]=mountains_high_copy[j+1]
            mountains_high_copy[j+1]=num

for i in range(3):
    print(mountains_high_copy[9-i

Fixed submission:
mountains_high=[]
for i in range(10):
    mountains_high.append(int(input()))

mountains_high_copy=mountains_high.copy()
for i in range(9):
    for j in range(9):
        if mountains_high_copy[j]>mountains_high_copy[j+1]:
            num=mountains_high_copy[j]
            mountains_high_copy[j]=mountains_high_copy[j+1]
            mountains_high_copy[j+1]=num

for i in range(3):
    print(mountains_high_copy[9-i])
Buggy python submission (verdict: Runtime Error):
times=int(input())
answers=[]
for i in range(times):
    hen=input().split()
    for j in range(times):
        hen[j]=int(hen[j])
    for j in range(times-1):
        for k in range(times-1):
            if hen[j]>hen[j+1]:
                num=hen[j]
                hen[j]=hen[j+1]
                hen[j+1]=num
    if hen[0]*hen[0]+hen[1]*hen[1]==hen[2]*hen[2]:
        answers.append('Yes')
    else:
        answers.append('No')

for i in range(len(answers)):
    print(answers[i])

Fixed submission:
[print("YES" if x[0] + x[1] == x[2] else "NO") for x in [sorted([x * x for x in [int(i) for i in input().split(" ")]]) for _ in range(int(input()))]]

Buggy python submission (verdict: Runtime Error):
times=int(input())
answers=[]
for i in range(times):
    hen=[]
    hen=input().split()
    for j in range(times):
        hen[j]=int(hen[j])
    for j in range(times-1):
        for k in range(times-1):
            if hen[j]>hen[j+1]:
                num=hen[j]
                hen[j]=hen[j+1]
                hen[j+1]=num
    if hen[0]*hen[0]+hen[1]*hen[1]==hen[2]*hen[2]:
        answers.append('Yes')
    else:
        answers.append('No')

for i in range(len(answers)):
    print(answers[i])

Fixed submission:
[print("YES" if x[0] + x[1] == x[2] else "NO") for x in [sorted([x * x for x in [int(i) for i in input().split(" ")]]) for _ in range(int(input()))]]
Buggy python submission (verdict: Runtime Error):
import numpy as nu
import math

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
S=1/2*a*b*nu.sin(c)
L=a+b+math.sqrt(a*a+b*b-2*a*b*nu.cos(c))
H=b*nu.sin(c)
print(S)
print(L)
print(H)

Fixed submission:
import math as m

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
c=m.radians(c)
S=0.5*a*b*m.sin(c)
L=a+b+m.sqrt(a*a+b*b-2*a*b*m.cos(c))
H=b*m.sin(c)
print(S)
print(L)
print(H)

Buggy python submission (verdict: Runtime Error):
import math
??
a, b, C = input().split()
a = float(a)
b = float(b)
C = float(C)
??
c = math.sqrt(((a*a) + (b*b) - 2*a*b*math.cos(math.radians(C))))
L = a + b + c
S = a*b*math.sin(math.radians(C))/2
h = 2*S/a
print("%.5f\n%.5f\n%.5f" % (S, L, h))

Fixed submission:
import math as m

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
c=m.radians(c)
S=0.5*a*b*m.sin(c)
L=a+b+m.sqrt(a*a+b*b-2*a*b*m.cos(c))
H=b*m.sin(c)
print(S)
print(L)
print(H)
Buggy python submission (verdict: Runtime Error):
num=input()
print(num*num*num)

Fixed submission:
a=int(input())
print(a**3)
Buggy python submission (verdict: Runtime Error):
w=input()
h=input()
w=int(w)
h=int(h)
print(w*h,2*w+2*h)

Fixed submission:
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
print(a*b,(a+b)*2

Fixed submission:
a,b=map(int,input().split())
print(a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
num_list=input.split()
a=int(num_list[0])
b=int(num_list[1])
c=int(num_list[2])
if a>b>c:
    print('Yes')
else :
    print('No')

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

Fixed submission:
while True:
    a,b=map(int,input().split())
    if a==0 and b==0:
        break
    if a>b:
        b,a=a,b
    print(a,b)
Buggy python submission (verdict: Runtime Error):
nums=[]
nums=input('>>>').split()
print(nums[0]//nums[1],nums[0]%nums[1],nums[0]/nums[1])

Fixed submission:
a,b=map(int,input().split())
print(a//b,a%b,"{0:.5f}".format(a/b))
Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
print(r*r*math.pi,r*2*math.pi)

Fixed submission:
import math
r=float(input())
print("{0:.10f}".format(r*r*math.pi),"{0:.10f}".format(r*2*math.pi))

Buggy python submission (verdict: Runtime Error):
import math
r=int(input())
print("{0:.5f}".format(r*r*math.pi),"{0:.5f}".format(r*2*math.pi))

Fixed submission:
import math
r=float(input())
print("{0:.10f}".format(r*r*math.pi),"{0:.10f}".format(r*2*math.pi))

Buggy python submission (verdict: Runtime Error):
import math
r=double(input())
print("{0:.5f}".format(r*r*math.pi),"{0:.5f}".format(r*2*math.pi))

Fixed submission:
import math
r=float(input())
print("{0:.10f}".format(r*r*math.pi),"{0:.10f}".format(r*2*math.pi))
Buggy python submission (verdict: Runtime Error):
n,m,l=map(int,input().split())
matrix_a=[]
matrix_b=[]
matrix_c=[]
for i in range(n):
    matrix_a.append(list(map(int,input().split())))
for i in range(m):
    matrix_b.append(list(map(int,input().split())))
tmp_l=list()
for i in range(n):
    for j in range(l):
        tmp_n=0
        for k in range(m):
            tmp_n+=matrix_a[i][k]*matrix_b[k][j]
        tmp_l.append(tmp_n)
    matrix_c.append(tmp_l.copy())
    tmp_l.clear()
for a,b,c in matrix_c:
    print(a,b,c)

Fixed submission:
n,m,l=map(int,input().split())
matrix_a=[]
matrix_b=[]
matrix_c=[]
for i in range(n):
    matrix_a.append(list(map(int,input().split())))
for i in range(m):
    matrix_b.append(list(map(int,input().split())))
tmp_l=list()
for i in range(n):
    for j in range(l):
        tmp_n=0
        for k in range(m):
            tmp_n+=matrix_a[i][k]*matrix_b[k][j]
        tmp_l.append(tmp_n)
    matrix_c.append(tmp_l.copy())
    tmp_l.clear()
for i in matrix_c:
    tmp=0
    for j in i:
        tmp+=1
        if tmp==l:
            print(j,end="")
        else:
            print(j,"",end="")
    print()
Buggy python submission (verdict: Runtime Error):
word=input()
how_in=0
while True:
    try:
        statement=input()
    except:
        break
    if statement=='END_OF_TEXT':
        break
    statement=statement.lower()
    statement.remove(' ')
    if word in statement :
        how_in+=statement.count(word)

print(how_in)

Fixed submission:
word=input().lower()
how_in=0
while True:
    letters=input()
    if letters=='END_OF_TEXT':
        break
    for i in letters.lower().split():
        if i==word:
            how_in+=1
print(how_in)

Buggy python submission (verdict: Runtime Error):
word=input().lower()
how_int=0
while True:
    letters=input()
    if letters=='END_OF_TEXT':
        break
    for i in letters.lower().split():
        if i==word:
            how_in+=1
print(how_in)

Fixed submission:
word=input().lower()
how_in=0
while True:
    letters=input()
    if letters=='END_OF_TEXT':
        break
    for i in letters.lower().split():
        if i==word:
            how_in+=1
print(how_in)
Buggy python submission (verdict: Runtime Error):

s = input()
????
for i in range(int(input())):
????????cmd = input().split()
????????a,b = [int(x) for x in cmd[1:3]]
????
????????if cmd[0] == 'print':
????????????????print(s[a:b+1])
????????elif cmd[0] == 'reverse':
????????????????s = s[:a] + s[a:b+1][::-1] + s[b+1:]
????????elif cmd[0] == 'replace':
????????????????s = s[:a] + cmd[3] + s[b+1:]

Fixed submission:
s=input()
for i in range(int(input())):
    sou_com=input().split()
    if sou_com[0]=='print':
        print(s[int(sou_com[1]):int(sou_com[2])+1])
    elif sou_com[0]=='reverse':
        s=s[:int(sou_com[1])]\
        +s[int(sou_com[1]):int(sou_com[2])+1][::-1]\
        +s[int(sou_com[2])+1:]
    elif sou_com[0]=='replace':
        s=s[:int(sou_com[1])]\
        +sou_com[3]\
        +s[int(sou_com[2])+1:]
Buggy python submission (verdict: Runtime Error):
mountain=[]
for s in range(0,10):
    mountain.append(int(input()))
mountain.sort(reverse=true)
for s in range(0,3):
 print(mountain[s])

Fixed submission:
mountain=[]
for s in range(0,10):
    mountain.append(int(input()))
mountain.sort(reverse=True)
for s in range(0,3):
 print(mountain[s])
Buggy python submission (verdict: Runtime Error):
while True:
 a,b=map(int,input().split())
 digit=(a+b)
 digit2=str(digit)
 print(len(digit2))

Fixed submission:
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass

Buggy python submission (verdict: Runtime Error):
while True:
 a,b=map(int,input().split())
 digit=(a+b)
 digit2=str(digit)
 print(len(digit2))

Fixed submission:
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass

Buggy python submission (verdict: Runtime Error):
while True:
 a,b=map(int,input().split())
 digit=(a+b)
 digit2=str(digit)
 print(len(digit2))
print()

Fixed submission:
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass

Buggy python submission (verdict: Runtime Error):
while True:
 a,b=map(int,input().split())
 digit=(a+b)
 digit2=str(digit)
 print(len(digit2))
print('')

Fixed submission:
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass
Buggy python submission (verdict: Runtime Error):
import math

while True:
 a,b=map(int,input().split())
 print(math.gcd(a,b),a*b//math.gcd(a,b))

Fixed submission:
def gcd(x,y):
    while y:
        x, y = y, x % y
    return x


def lcm(x,y):
    return x * y // gcd(x,y)


while True:
    try:
        a = list(map(int,input().split()))
        print(gcd(a[0],a[1]),lcm(a[0],a[1]))
    except:
        break

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

while True
 a,b=map(int,input().split())
 print(math.gcd(a,b),a*b//math.gcd(a,b))
 print()

Fixed submission:
def gcd(x,y):
    while y:
        x, y = y, x % y
    return x


def lcm(x,y):
    return x * y // gcd(x,y)


while True:
    try:
        a = list(map(int,input().split()))
        print(gcd(a[0],a[1]),lcm(a[0],a[1]))
    except:
        break

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

try:
while True:
  a,b=map(int,input().split())
  print(math.gcd(a,b),a*b// math.gcd(a, b))
 except:
   pass
 

Fixed submission:
def gcd(x,y):
    while y:
        x, y = y, x % y
    return x


def lcm(x,y):
    return x * y // gcd(x,y)


while True:
    try:
        a = list(map(int,input().split()))
        print(gcd(a[0],a[1]),lcm(a[0],a[1]))
    except:
        break

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

try:
 while 1:
  a,b=map(int,input().split())
  print(math.gcd(a,b),a*b// math.gcd(a, b))
except EOFError:
   pass
 

Fixed submission:
def gcd(x,y):
    while y:
        x, y = y, x % y
    return x


def lcm(x,y):
    return x * y // gcd(x,y)


while True:
    try:
        a = list(map(int,input().split()))
        print(gcd(a[0],a[1]),lcm(a[0],a[1]))
    except:
        break

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

try:
 while True:
  a,b=map(int,input().split())
  print(math.gcd(a,b),a*b// math.gcd(a, b))
except EOFError:
  pass
 

Fixed submission:
def gcd(x,y):
    while y:
        x, y = y, x % y
    return x


def lcm(x,y):
    return x * y // gcd(x,y)


while True:
    try:
        a = list(map(int,input().split()))
        print(gcd(a[0],a[1]),lcm(a[0],a[1]))
    except:
        break
Buggy python submission (verdict: Runtime Error):
while True:
 l1=list(map(int,input().split()))
 l2=list(map(int,input().split()))
 hit=blow=0
 for i in l1:
   for s in l2:
    if i==s:
     if l1.index(i)==l2.index(s):
       hit+=1
     else:
       blow+=1
 print(hit,blow)
        
    

Fixed submission:
try:
 while True:
  l1=list(map(int,input().split()))
  l2=list(map(int,input().split()))
  hit=blow=0
  for i in l1:
    for s in l2:
     if i==s:
      if l1.index(i)==l2.index(s):
        hit+=1
      else:
        blow+=1
  print(hit,blow)
except:
  pass
Buggy python submission (verdict: Time Limit Exceeded):
total=0
s=0
i=0
while True:
 try:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
 except:
   result=s/i
   print(total)
   print(result)

Fixed submission:
try:
  total=s=i=0 
  while True:
   a,b = map(int,input().split(','))
   total += a*b
   s += b
   i += 1
except:
 print(total)
 print(round(s/i+0.5))

Buggy python submission (verdict: Runtime Error):
total=0
s=0
i=0
while True:
 try:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
 except:
   result=s/i
   print(total)
   print(round(result))

Fixed submission:
try:
  total=s=i=0 
  while True:
   a,b = map(int,input().split(','))
   total += a*b
   s += b
   i += 1
except:
 print(total)
 print(round(s/i+0.5))

Buggy python submission (verdict: Runtime Error):
total=0
s=0
i=0
try: 
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
   result=s/i
   print(total)
   print(round(result))

Fixed submission:
try:
  total=s=i=0 
  while True:
   a,b = map(int,input().split(','))
   total += a*b
   s += b
   i += 1
except:
 print(total)
 print(round(s/i+0.5))

Buggy python submission (verdict: Runtime Error):
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
result=s/i 
print(total)
print(round(result))

Fixed submission:
try:
  total=s=i=0 
  while True:
   a,b = map(int,input().split(','))
   total += a*b
   s += b
   i += 1
except:
 print(total)
 print(round(s/i+0.5))
Buggy python submission (verdict: Runtime Error):
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 if isinstance(result,float):
    print(round(result))
 else:
    print(result)

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Buggy python submission (verdict: Runtime Error):
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 print(round(result))

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Buggy python submission (verdict: Runtime Error):
total=s=i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 print(round(result))

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Buggy python submission (verdict: Runtime Error):
total=s=i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 print(total)
 print(round(s/i+0.5 ))

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Buggy python submission (verdict: Runtime Error):
try:
 total=s=i=0 
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s += b
  i += 1
except:
 print(total)
 print(round(s/i+0.5 ))

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Buggy python submission (verdict: Runtime Error):
try:
 total=s=i=0 
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s += b
  i += 1
except:
 print(total)
 print(round(s/i+0.5))

Fixed submission:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break
Buggy python submission (verdict: Runtime Error):
while 7:
   a,b=map(int,input().split())
   if a==-a or b== -b:
    print(a+b)
   else: 
    print(a-b)

Fixed submission:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)

Buggy python submission (verdict: Runtime Error):
for i in range(0,7)
a,b=map(int,input(),split())
print(a-b)

Fixed submission:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)

Buggy python submission (verdict: Runtime Error):
for i in range(0,7):
 a,b=map(int,input(),split())
 print(a-b)

Fixed submission:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)

Buggy python submission (verdict: Runtime Error):
for i in range(7):
 a,b=map(int,input(),split())
 print(a-b)

Fixed submission:
for i in range(7):
 a,b=map(int,input().split())
 print(a-b)
Buggy python submission (verdict: Runtime Error):
try:
 while True:
  i=int(input())
   print(i*32)
except EOFError:
  pass

Fixed submission:
W=int(input())
print(W*32)
Buggy python submission (verdict: Runtime Error):
lst=list(input().split())
lst.sort()
if lst[0]==lst[1]==lst[2]==lst[3] and lst[4]==lst[5]==lst[6]==lst[7] and
lst[8]==lst[9]==lst[10]==lst[11]:
  print('yes')
else:
   print('no')

Fixed submission:
l=list(input().split())
l.sort()
if l[0]==l[1]==l[2]==l[3] and l[4]==l[5]==l[6]==l[7]and l[8]==l[9]==l[10]==l[11]:
  print('yes')
else:
   print('no')

Buggy python submission (verdict: Runtime Error):
lst=list(input().split())
lst.sort()
if lst[0]==lst[1]==lst[2]==lst[3]andlst[4]==lst[5]==lst[6]==lst[7]andlst[8]==lst[9]==lst[10]==lst[11]:

  print('yes')
else:
   print('no')

Fixed submission:
l=list(input().split())
l.sort()
if l[0]==l[1]==l[2]==l[3] and l[4]==l[5]==l[6]==l[7]and l[8]==l[9]==l[10]==l[11]:
  print('yes')
else:
   print('no')
Buggy python submission (verdict: Runtime Error):
import math

x1,y1,x2,y2=map(int,input().split())
answer=(math.sqrt((x2-x1)**2+(y2-y1)**2))
print("{0:.8f}".format(answer))

Fixed submission:
import math

x1,y1,x2,y2=map(float,input().split())
answer=(math.sqrt((x2-x1)**2+(y2-y1)**2))
print("{0:.8f}".format(answer))

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

x1,y1,x2,y2=map(int,input().split())
answer=(math.sqrt((x2-x1)**2+(y2-y1)**2))
print("{0:.8f}".format(answer))
print()

Fixed submission:
import math

x1,y1,x2,y2=map(float,input().split())
answer=(math.sqrt((x2-x1)**2+(y2-y1)**2))
print("{0:.8f}".format(answer))
Buggy python submission (verdict: Runtime Error):
import math

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)(a/2)
print(S)
print(L)
print(H)

Fixed submission:
import math

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)/(a/2)
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))

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

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)(a/2)
print(S)
print(L)
print(H)

Fixed submission:
import math

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)/(a/2)
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))

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

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)(a/2)
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))

Fixed submission:
import math

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)/(a/2)
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))
Buggy python submission (verdict: Runtime Error):
import statistics

while True:
  s=int(input())
  if s==0:
    break
  else:
   lst=list(map(int,input().split()))
  print("{0.8}".format(statitics.pstdev(lst)))
  

Fixed submission:
import statistics

while True:
  s=int(input())
  if s==0:
    break
  else:
   lst=list(map(int,input().split()))
  print("{0:.8}".format(statistics.pstdev(lst)))

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

while True:
  s=int(input())
  if s==0:
    break
  else:
   lst=list(map(int,input().split()))
  print("{0:.8}".format(statitics.pstdev(lst)))
  

Fixed submission:
import statistics

while True:
  s=int(input())
  if s==0:
    break
  else:
   lst=list(map(int,input().split()))
  print("{0:.8}".format(statistics.pstdev(lst)))
Buggy python submission (verdict: Runtime Error):
x = input()

y = x**3

print int(y)

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

Fixed submission:
a, b = map(int, input().split(' '))
print( a * b, 2 * a + 2 * b)
Buggy python submission (verdict: Runtime Error):
while True:
 input('')

Fixed submission:
t=[]
while True:
    x = str(input(""))
    if x == "0":
        break
    else:
        t.append(x)
for i,v in enumerate(t):
    print("Case",str(i+1)+":",t[i])
Buggy python submission (verdict: Runtime Error):
while True:
 H,W = map(int,input().split())
 if H==0 and W==0:
   break
 for s in range(H):
    print('#'*W)
      print()

Fixed submission:
while True:
 H,W = map(int,input().split())
 if H==0 and W==0:
   break
 for s in range(H):
    print('#'*W)
 print()
Buggy python submission (verdict: Runtime Error):
cardlist = [[i for i in range(1,14)] for j in range(4)]
n=int(input())
for s in range(0,n):
  x,y=(input().split())
  y=int(y)
  if   x =="S":
    cardlist[0].remove(y)
  elif x =="H":
    cardlist[1].remove(y)
  elif x =="C":
    cardlist[2].remove(y)
  else:
    cardlist[3].remove(y)
for i in cardlist[0]:
  print("S",z)
for i in cardlist[1]:
  print("H",z)
for i in cardlist[2]:
  print("C",z)
for i in cardlist[3]:
  print("D",z)
  
  

Fixed submission:
N = int(input())
x = [f"{x} {i}" for x in 'SHCD' for i in range(1,14) ]
[x.remove(input()) for i in range(N)]
for i in x:
    print(i)
Buggy python submission (verdict: Runtime Error):
while True:
  x=input()
  if x==0:
   break
  print(sum(int(z) for z in x))

Fixed submission:
while True:
  x=input()
  if x == '0':
   break
  print(sum(int(z) for z in x))
Buggy python submission (verdict: Runtime Error):
W=input()
s=0
while True:
 T=list(input().split())
 for i in T:
  if T=='END_OF_TEXT':
    break
  else:
   if i==W:
        s+=1
 print(s)
     
 

Fixed submission:
W=input()
s=0
while True:
 T=list(input().split())
 if T==['END_OF_TEXT']:
   break
 else:
   for i in T:
     if i.lower()==W.lower():
        s+=1
print(s)

Buggy python submission (verdict: Runtime Error):
W=input()
s=0
while True:
 T=list(input())
 if T==['END_OF_TEXT']:
  break
 else:
   for i in T:
    if i==W:
        s+=1
print(s)
     
 

Fixed submission:
W=input()
s=0
while True:
 T=list(input().split())
 if T==['END_OF_TEXT']:
   break
 else:
   for i in T:
     if i.lower()==W.lower():
        s+=1
print(s)
Buggy python submission (verdict: Runtime Error):
while True:
 al=input()
 m=int(input())
 for i in range(m):
   n = int(input())
   if n=='-':
     break
   else:
    al= al[n:] + al[:n]
 print(al)

Fixed submission:
while True:
 al=input()
 if al=='-':
     break
 else:
  m=int(input())
  for i in range(m):
   n = int(input())
   al= al[n:] + al[:n]
  print(al)
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
x = 0
for i in range(1, n+1):
  if i%3 == 0:
    print(' %d'%i, end="")
  else:
    x = i
while(x):
  if x%10 == 3:
    print(' %d'%i, end="")
    break
    x //= 10
print()


Fixed submission:
N = int(input())
x = 0
 
for i in range(1,N+1):
 
    if i%3 == 0:
            print(" %d"%i,end = "");
    else:
        x = i
        while (x):
            if x%10 == 3:
                print(" %d"%i,end = "")
                break
            x //= 10
print()