Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    h1=map(int, raw_input().split())
    for h in h1:
        h2=[ x for x in h1 if x!=h ]
        g=[ h2[i+1]-h2[i] for i in range(n-1) ]
        if len(set(g))==1:
            print h
            break

Fixed submission:
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    grass=map(int, raw_input().split())
    for i in range(n+1):
        h=[ x for j,x in enumerate(grass) if i!=j ]
        g=[ h[j+1]-h[j] for j in range(len(h)-1) ]
        if len(set(g))==1:
            print grass[i]
            break

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    h1=map(int, raw_input().split())
    for h in h1:
        h2=[ x for x in h1 if x!=h ]
        g=[ h2[i+1]-h2[i] for i in range(n-1) ]
        if len(set(g))==1:
            print h
            break

Fixed submission:
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    grass=map(int, raw_input().split())
    for i in range(n+1):
        h=[ x for j,x in enumerate(grass) if i!=j ]
        g=[ h[j+1]-h[j] for j in range(len(h)-1) ]
        if len(set(g))==1:
            print grass[i]
            break

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
while 1:
    try:
        n=int(raw_input())
        if n==0: break
        h1=map(int, raw_input().split())
        for h in h1:
            h2=[ x for x in h1 if x!=h ]
            g=[ h2[i+1]-h2[i] for i in range(n-1) ]
            if len(set(g))==1:
                print h
                break
    except RuntimeError, e:
        print e.message

Fixed submission:
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    grass=map(int, raw_input().split())
    for i in range(n+1):
        h=[ x for j,x in enumerate(grass) if i!=j ]
        g=[ h[j+1]-h[j] for j in range(len(h)-1) ]
        if len(set(g))==1:
            print grass[i]
            break

Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
while 1:
    try:
        n=int(raw_input())
        if n==0: break
        h1=map(int, raw_input().split())
        for h in h1:
            h2=[ x for x in h1 if x!=h ]
            g=[ h2[i+1]-h2[i] for i in range(n-1) ]
            if len(set(g))==1:
                print h
                break
    except RuntimeError, e:
        print n, h1
        print e.message

Fixed submission:
#!/usr/bin/env python
while 1:
    n=int(raw_input())
    if n==0: break
    grass=map(int, raw_input().split())
    for i in range(n+1):
        h=[ x for j,x in enumerate(grass) if i!=j ]
        g=[ h[j+1]-h[j] for j in range(len(h)-1) ]
        if len(set(g))==1:
            print grass[i]
            break
Buggy python submission (verdict: Runtime Error):
for line in sys.stdin.readlines():
    print sum(map(int,line.rstrip().split()))

Fixed submission:
import sys
for line in sys.stdin.readlines():
    print sum(map(int,line.rstrip().split()))
Buggy python submission (verdict: Runtime Error):
n, m = map(int, raw_input().split())
c = map(int, raw_input().split())

INF = 1000000000

t = [INF] * n
t[0] = 0

for i in range(m):
    # print(c[i])
    for j in range(c[i], n):
        t[j] = min([t[j], t[j - c[i]] + 1])
    # print(t)

print(t[n - 1])
~

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

INF = 1000000000

t = [INF] * (n + 1)
t[0] = 0

for i in range(m):
    for j in range(c[i], n + 1):
        t[j] = min([t[j], t[j - c[i]] + 1])

print(t[n])
Buggy python submission (verdict: Runtime Error):
while 1:
    a,op,b=raw_input().split()
    if(a==b=='0' and op=='?'): break
    a,b=map(int,[a,b])
    ans=0
    if op=='+':
        ans=a+b
    elif op=='-':
        ans=a-b
    elif op=='*':
        ans=a*b
    elif op=='/':
        ans=a/b
    print ans

Fixed submission:
while 1:
    a,op,b=raw_input().split()
    if(op=='?'): break
    a,b=map(int,[a,b])
    ans=0
    if op=='+':
        ans=a+b
    elif op=='-':
        ans=a-b
    elif op=='*':
        ans=a*b
    elif op=='/':
        ans=a/b
    print ans
Buggy python submission (verdict: Runtime Error):
while 1:
    m,f,r=map(int,raw_input().split())
    ans=''
    if m==0 or f==0: ans='F'
    elif 80<=m+f: ans='A'
    elif 65<=m+f: ans='B'
    elif 60<=m+f: ans='C'
    elif 30<=m+f:
        if 50<=r: ans='C'
        else:     ans='D'
    else:
        ans='C'
    print ans

Fixed submission:
while 1:
    m,f,r=map(int,raw_input().split())
    if m==f==r==-1: break
    ans=''
    if m==-1 or f==-1: ans='F'
    elif 80<=m+f: ans='A'
    elif 65<=m+f: ans='B'
    elif 50<=m+f: ans='C'
    elif 30<=m+f:
        if 50<=r: ans='C'
        else:     ans='D'
    else:
        ans='F'
    print ans
Buggy python submission (verdict: Runtime Error):
input()
print " ".join(sorted(map(int,raw_input().split())))

Fixed submission:
input()
print " ".join(map(str,sorted(map(int,raw_input().split()))))
Buggy python submission (verdict: Runtime Error):
n=input()
S=set([map(int,raw_input().split())])
q=input()
T=set([map(int,raw_input().split())])
print len(S&T)

Fixed submission:
n=input()
S=set(map(int,raw_input().split()))
q=input()
T=set(map(int,raw_input().split()))
print len(S&T)
Buggy python submission (verdict: Time Limit Exceeded):
while 1:
    n = int(raw_input())
    if n == 0:
        break
    dp = [[0] * n for i in range(n)]
    r = 0
    for i in range(n):
        for j, ch in enumerate(raw_input()):
            if ch == '*':
                continue
            dp[i][j] = 1
            if i >= 1 or j >= 1:
                for k in range(1, dp[i - 1][j - 1] + 1):
                    if dp[i - k][j] == 0 or dp[i][j - k] == 0:
                        break
                    dp[i][j] += 1
            r = max(r, dp[i][j])
    print r

Fixed submission:
while 1:
    n = int(raw_input())
    if n == 0:
        break
    dp = [[0] * n for i in range(n)]
    r = 0
    for i in range(n):
        for j, ch in enumerate(raw_input()):
            if ch == '*':
                continue
            dp[i][j] = 1
            if i >= 1 or j >= 1:
                dp[i][j] += min(dp[i - 1][j - 1], dp[i - 1][j], dp[i][j - 1])
            r = max(r, dp[i][j])
    print r
Buggy python submission (verdict: Runtime Error):
import numpy as np

n = input()
n = int(n)
a = input()
a = a.split()
a = [int(x) for x in a]

q = input()
q = int(q)
ms = input()
ms = ms.split()
ms = [int(x) for x in ms]

np.sort(a)
a = np.array(a)
for m in ms:
    if m > a[-1]:
        print("no")
    elif a.any()==m:
        print("yes")
    else:
        a_new = a[a < m]
        print(a_new)
        select = []
        length = len(a_new)
        selects = np.zeros(2**length, length)

Fixed submission:
import re
from itertools import product
import itertools

q1 = int(input())
q2 = input()
q3 = int(input())
q4 = input()

S = re.split(r' ',q2)
S=list(map(int, S))

T = re.split(r' ',q4)
T=list(map(int, T))

S_len = len(S)
T_len = len(T)

array = []
for j in range(q1+1):
    x = list(itertools.combinations(S, j))
    for k in range(len(x)):
        y = sum(x[k])
        array.append(y)

for i in range(T_len):
    if(T[i] in array):
        print("yes")
    else:
        print("no")
Buggy python submission (verdict: Runtime Error):
flag = [False] * 53
n = int(input())
for i in range(n):
    c, n = map(str, input().split())
    n = int(n)
    if(c == "S"):
        flag[n] = True
    elif(c == "H"):
        flag[13 + n] = True
    elif(c == "C"):
        flag[26 + n] = True
    else:
        flag[39 + n] = True
suit = ["S", "H", "C", "D"]
for i in range(1, len(flag)):
    if(flag[i] == False):
        print(suit[i // 13], i % 13)

Fixed submission:
flag = [False] * 53
n = int(input())
for i in range(n):
    c, n = map(str, input().split())
    n = int(n)
    if(c == "S"):
        flag[n] = True
    elif(c == "H"):
        flag[13 + n] = True
    elif(c == "C"):
        flag[26 + n] = True
    else:
        flag[39 + n] = True
suit = ["S", "H", "C", "D"]
for i in range(1, len(flag)):
    if(flag[i] == False):
        print(suit[(i - 1) // 13], (i - 1) % 13 + 1)
Buggy python submission (verdict: Time Limit Exceeded):
n = input()
S = list(map(int, input().split()))
q = input()
T = list(map(int, input().split()))
cnt = 0
for i in range(len(T)):
    if S.count(T[i]) >= 1:
        cnt += 1
print(cnt)

Fixed submission:
_ = input()
S = set(input().split())
_ = input()
T = set(input().split())
print(len(S & T))
Buggy python submission (verdict: Runtime Error):
l = []
while True:
	try:
		train = int(raw_input())
		if train == 0:
			print(l.pop())
		else:
			l.append(train)
	except EOFError:
		break

Fixed submission:
l = []
while True:
	try:
		train = raw_input()
		if train == '0':
			print(l.pop())
		else:
			l.append(train)
	except EOFError:
		break
Buggy python submission (verdict: Runtime Error):
alphabet = [chr(i) for i in range(ord('a'), ord('z')+1)]
s = ""
while True:
	n = raw_input().lower()
	if n == "":
		break
	s += n
for i in range(26):
	count = s.count(alphabet[i])
	print("{0} : {1}").format(alphabet[i],count)

Fixed submission:
alphabet = [chr(i) for i in range(ord('a'), ord('z')+1)]
s = ""
while True:
	try:
		s += raw_input().lower()
	except EOFError:
		break
for i in range(26):
	count = s.count(alphabet[i])
	print("{0} : {1}").format(alphabet[i],count)
Buggy python submission (verdict: Time Limit Exceeded):
n = (int)(raw_input())
s = map(int,raw_input().split())
q = (int)(raw_input())
t = map(int,raw_input().split())
count = 0
for i in range(q):
	for j in range(n):
		if t[i] == s[j]:
			count += 1
			break
print(count)

Fixed submission:
n = (int)(raw_input())
s = set(map(int,raw_input().split()))
q = (int)(raw_input())
t = set(map(int,raw_input().split()))
count = 0
print(len(s.intersection(t)))
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()
print a**b+" "+2*a+2*b

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

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

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

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

Fixed submission:
a, b = map(int, raw_input().split(" "))
print a*b, (a+b)*2
Buggy python submission (verdict: Runtime Error):
x = map(int, raw_input().split(" "))
x.sort()
for i x x_last
    print x[i]

Fixed submission:
x = map(int, raw_input().split(" "))
x.sort()
for i in x:
    print i,
Buggy python submission (verdict: Runtime Error):


while True:
    try:
        nums = map(int, raw_input().split(' '))
        
        ans = nums[0]+nums[1]
        
        x = 0
        while True:
            if (10**x -1) < ans < 10**(x+1):
                print x+1
                break
            else:
                x = x+1
    except EOFerror:
        break 

Fixed submission:
while True:
    try:
        nums = map(int, raw_input().split(' '))
        
        ans = nums[0]+nums[1]
        
        x = 0
        while True:
            if (10**x -1) < ans < 10**(x+1):
                print x+1
                break
            else:
                x = x+1
    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):
while True:
    a = map(float, raw_input().split(' '))
    if a[1]*a[3]-a[0]*a[4] == 0:
        print 'No answer'
    else:
        x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
        y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
        print '%.3f %.3f ' % (x,y)

Fixed submission:
while True:
    try:
        a = map(float, raw_input().split(' '))
        x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
        y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
        if x == 0: 
            x = abs(x)
        if y == 0:
            y = abs(y)
        print '%.3f %.3f' % (x,y)
    except EOFError:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    a = map(float, raw_input().split(' '))
    if a[1]*a[3]-a[0]*a[4] == 0:
        print 'No answer'
    else:
        x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
        y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
        if x == 0:
            x = abs(x)
        if y == 0:
            y = abs(y)
        print '%.3f %.3f ' % (x,y)

Fixed submission:
while True:
    try:
        a = map(float, raw_input().split(' '))
        x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
        y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
        if x == 0: 
            x = abs(x)
        if y == 0:
            y = abs(y)
        print '%.3f %.3f' % (x,y)
    except EOFError:
        break

Buggy python submission (verdict: Runtime Error):
while True:
    a = map(float, raw_input().split(' '))
    x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
    y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
    if x == 0:
        x = abs(x)
    if y == 0:
        y = abs(y)
    print '%.3f %.3f ' % (x,y)

Fixed submission:
while True:
    try:
        a = map(float, raw_input().split(' '))
        x = (a[1]*a[5]-a[2]*a[4])/(a[1]*a[3]-a[0]*a[4])
        y = (a[2]*a[3]-a[0]*a[5])/(a[1]*a[3]-a[0]*a[4])
        if x == 0: 
            x = abs(x)
        if y == 0:
            y = abs(y)
        print '%.3f %.3f' % (x,y)
    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):


while True:
    try:
        x = int(raw_input())
        
        
        count = 0
        for a in range(10):
            for b in range(10):
                for c in range(10):
                    for d in range(10):
                        if a+b+c+d == x :
                            count += 1
        
        print count

    except ValueError:
        break

Fixed submission:


while True:
    try:
        x = input()
        
        
        count = 0
        for a in range(10):
            for b in range(10):
                for c in range(10):
                    for d in range(10):
                        if a+b+c+d == x :
                            count += 1
        
        print count

    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):
num =input()

YN = []

for i in range(num):
    x = map(float, raw_input().split(' '))

    if (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        YN.append('YES')
    else:
        YN.append('NO')

for i in YN:
    print i

Fixed submission:
num =input()


for i in range(num):
    x = map(float, raw_input().split(' '))

    if x[1]-x[3] == 0 or x[5]-x[7] == 0:
        if x[1]-x[3] == 0 and x[5]-x[7] == 0:
            print 'YES'
        else:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

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


for i in range(num):
    x = map(float, raw_input().split(' '))

    if (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

Fixed submission:
num =input()


for i in range(num):
    x = map(float, raw_input().split(' '))

    if x[1]-x[3] == 0 or x[5]-x[7] == 0:
        if x[1]-x[3] == 0 and x[5]-x[7] == 0:
            print 'YES'
        else:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

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


for i in range(num):
    x = map(float, raw_input().split(' '))
    if x[1]-x[3] == 0 or x[1]-x[3] == 0:
        if x[1]-x[3] == 0 and x[1]-x[3] == 0:
            print 'YES'
        elif:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

Fixed submission:
num =input()


for i in range(num):
    x = map(float, raw_input().split(' '))

    if x[1]-x[3] == 0 or x[5]-x[7] == 0:
        if x[1]-x[3] == 0 and x[5]-x[7] == 0:
            print 'YES'
        else:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

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


for i in range(num):
    x = map(float, raw_input().split(' '))

    if x[1]-x[3] == 0 or x[5]-x[7] == 0:
        if x[1]-x[3] == 0 and x[5]-x[7] == 0:
            print 'YES'
        elif:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'

Fixed submission:
num =input()


for i in range(num):
    x = map(float, raw_input().split(' '))

    if x[1]-x[3] == 0 or x[5]-x[7] == 0:
        if x[1]-x[3] == 0 and x[5]-x[7] == 0:
            print 'YES'
        else:
            print 'NO'
        
    elif (x[0]-x[2])/(x[1]-x[3]) == (x[4]-x[6])/(x[5]-x[7]):
        print 'YES'
    else:
        print 'NO'
Buggy python submission (verdict: Runtime Error):

while True:
    try:
        listA = map(int,raw_input().split(' '))
        listB = map(int,raw_input().split(' '))

        hit=0
        blw=0
        for tB in listB:
            if (tB in listA) and (listB.index(tB) == listA.index(tB)):
                hit += 1
            elif (tB in listA) and (listB.index(tB) != listA.index(tB)):
                blw += 1
        print hit,blw

    except EOFError:
        break

Fixed submission:

while True:
    try:
        listA = map(str,raw_input().split(' '))
        listB = map(str,raw_input().split(' '))

        hit=0
        blw=0
        for tB in listB:
            if (tB in listA) and (listB.index(tB) == listA.index(tB)):
                hit += 1
            elif (tB in listA) and (listB.index(tB) != listA.index(tB)):
                blw += 1
        print hit,blw

    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):

dates = []
youbi = []

for i in range(1,13):
    if i == 1 or i == 3 or i == 5 or i == 7 or i == 8 or i == 10 or i == 12:
        for j in range(1,32):
            dates.append([i,j])
    elif i == 4 or i == 6 or i == 9 or i == 11:
        for j in range(1,31):
            dates.append([i,j])
    elif i == 2:
        for j in range(1,30):
            dates.append([i,j])

while True:
    x = map(int, raw_input().split(' '))
    if x == [0,0]:
        for yo in youbi:
            print yo
    elif dates.index(x) % 7 == 0:
        youbi.append('Thursday')
    elif dates.index(x) % 7 == 1:
        youbi.append('Friday')
    elif dates.index(x) % 7 == 2:
        youbi.append('Saturday')
    elif dates.index(x) % 7 == 3:
        youbi.append('Sunday')
    elif dates.index(x) % 7 == 4:
        youbi.append('Monday')
    elif dates.index(x) % 7 == 5:
        youbi.append('Tuesday')
    elif dates.index(x) % 7 == 6:
        youbi.append('Wednesday')

Fixed submission:

dates = []
youbi = []

for i in range(1,13):
    if i == 1 or i == 3 or i == 5 or i == 7 or i == 8 or i == 10 or i == 12:
        for j in range(1,32):
            dates.append([i,j])
    elif i == 4 or i == 6 or i == 9 or i == 11:
        for j in range(1,31):
            dates.append([i,j])
    elif i == 2:
        for j in range(1,30):
            dates.append([i,j])

while True:
    x = map(int, raw_input().split(' '))
    if x == [0,0]:
        for yo in youbi:
            print yo
        break
    elif dates.index(x) % 7 == 0:
        youbi.append('Thursday')
    elif dates.index(x) % 7 == 1:
        youbi.append('Friday')
    elif dates.index(x) % 7 == 2:
        youbi.append('Saturday')
    elif dates.index(x) % 7 == 3:
        youbi.append('Sunday')
    elif dates.index(x) % 7 == 4:
        youbi.append('Monday')
    elif dates.index(x) % 7 == 5:
        youbi.append('Tuesday')
    elif dates.index(x) % 7 == 6:
        youbi.append('Wednesday')
Buggy python submission (verdict: Runtime Error):
while True:
    array = map(str,raw_input())
    display = []
    for i in range(len(array)):
        if array[i] != '@':
            display.append(array[i])
        elif array[i] == '@':
            insert = int(array[i+1])*array[i+2]
            display.append(insert)
            array[i+1] ,array[i+2]= '',''
        
    for i in range(len(display)-1):
        display[i+1] = display[i]+ display[i+1]

    print display[-1]

Fixed submission:
while True:
    try:
        array = map(str,raw_input())
        display = []
        for i in range(len(array)):
            if array[i] != '@':
                display.append(array[i])
            elif array[i] == '@':
                insert = int(array[i+1])*array[i+2]
                display.append(insert)
                array[i+1] ,array[i+2]= '',''
            
        for i in range(len(display)-1):
            display[i+1] = display[i]+ display[i+1]

        print display[-1]
    except EOFError:
        break
Buggy python submission (verdict: Time Limit Exceeded):
import math

def third(n,q):
    n = int(n)
    q = float(q)
    if n == 1: return q/2
    else : return third(n-1,q)- (third(n-1,q)**3-q)/(3*third(n-1,q)**2)

kai = []
while(True):
    try:
        q = input()
        if q == -1:
            for ka in kai:
                print ka
            break
        elif q != -1 :
            n = 1
            q = float(q)
            while  (math.fabs(q-third(n, q)**3) >= 0.00001*q):
                n += 1
            kai.append(third(n, q))
    except EOFError:
        break

Fixed submission:
while(True):
    try:
        q = input()
        if q == -1:
            break
        else :
            q = float(q)
            x = q/2
            while  (abs(q-x**3) >= 0.00001*q):
                x = x- (x**3-q)/(3*x**2)
            print '{:.6f}'.format(x)
    except EOFError:
        break

Buggy python submission (verdict: Time Limit Exceeded):


def third(n,q):
    n = int(n)
    q = float(q)
    if n == 1: return q/2
    else : return third(n-1,q)- (third(n-1,q)**3-q)/(3*third(n-1,q)**2)

kai = []
while(True):
    try:
        q = input()
        if q == -1:
            break
        else :
            n = 1
            q = float(q)
            while  (abs(q-third(n, q)**3) >= 0.00001*q):
                n += 1
            print '{:.6f}'.format(third(n, q))
    except EOFError:
        break

Fixed submission:
while(True):
    try:
        q = input()
        if q == -1:
            break
        else :
            q = float(q)
            x = q/2
            while  (abs(q-x**3) >= 0.00001*q):
                x = x- (x**3-q)/(3*x**2)
            print '{:.6f}'.format(x)
    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):
x = map(int, raw_input().split(" ")
print x[0]+x[1]

Fixed submission:
while True:
    try:
        x = map(int, raw_input().split(" "))
        print x[0]+x[1]
    except EOFError:
        break
Buggy python submission (verdict: Runtime Error):
import sys

for line in sys.stdin
 n =map(int,line.split())
 a = n[0]+n[1]
 print line(str(a))

Fixed submission:
import sys

for line in sys.stdin:
 n =map(int,line.split())
 a = n[0]+n[1]
 print len(str(a))

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

for line in sys.stdin
 n =map(int,line.split())
 a = n[0]+n[1]
 print len(str(a))

Fixed submission:
import sys

for line in sys.stdin:
 n =map(int,line.split())
 a = n[0]+n[1]
 print len(str(a))
Buggy python submission (verdict: Runtime Error):
e True:
    try:
        a = map(long,raw_input().split())
        m = a[0]*a[4]-a[1]*a[3]

        x = (a[4]*a[2] - a[1]*a[5])/m
        y = (a[0]*a[5] - a[2]*a[3])/m

	if x == -0:
            x = 0
	if y == -0:
            y = 0

	print "%.3f %.3f" % (x,y)

    except EOFError:
	break

Fixed submission:
while True:
    try:
        a = map(float,raw_input().split())
        m = a[0]*a[4]-a[1]*a[3]

        x = (a[4]*a[2] - a[1]*a[5])/m
        y = (a[0]*a[5] - a[2]*a[3])/m

	if x == -0:
            x = 0
	if y == -0:
            y = 0

	print "%.3f %.3f" % (x,y)

    except EOFError:
	break
Buggy python submission (verdict: Runtime Error):
a = raw_input()
[::-1]
print a

Fixed submission:
a = raw_input()
a = a[::-1]
print a