Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
while True:
    x=raw_input()
    if x=='':
        break
    L=x.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit

Fixed submission:
import sys
for jk in sys.stdin:
    L=jk.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit
Buggy python submission (verdict: Runtime Error):
import sys
x=raw_input()
for abc in sys.stdin:
    L=map(int,abc.split(" ")).sort()
    if L[0]**2 + L[1]**2 == L[2]**2:
        print "YES"
    else:
        print "NO"

Fixed submission:
for i in range(input()):
    x=raw_input()
    L=map(int,x.split(" "))
    L.sort()
    if L[0]**2 + L[1]**2 == L[2]**2:
        print "YES"
    else:
        print "NO"
Buggy python submission (verdict: Time Limit Exceeded):
import sys
for ab in sys.stdin:
    a,b=map(int,ab.split(" "))
    if a>=b:
        for g in xrange(b,0,-1):
            if a%g==0 and b%g==0:
                gcd = g
                break
        for l in xrange(1,b+1):
            if (a*l)%b == 0:
                lcm = a*l
                break
    else:
        for g in xrange(a,0,-1):
            if a%g==0 and b%g==0:
                gcd = g
                break
        for l in xrange(1,a+1):
            if (b*l)%a == 0:
                lcm = b*l
                break
    print gcd,lcm

Fixed submission:
import sys

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

for ab in sys.stdin:
    a,b=map(int,ab.split(" "))
    if a<=b:
        tmp = a
        a = b
        b = tmp
    g = gcd(a,b)
    l = a*b/g
    print g,l
Buggy python submission (verdict: Runtime Error):
import sys

for str in sys.stdin:
    rev = ""
    for x in range(len(str),0,-1):
        rev=rev+str[x-1]
　　print rev

Fixed submission:
s=raw_input()
rev = ""
for x in xrange(len(s),0,-1):
    rev=rev+s[x-1]
print rev
Buggy python submission (verdict: Runtime Error):
import sys
for n in sys.stdin:
    n=int(n)
    x=[0]*n
    x[2]=1
    flag = 0
    for i in xrange(3,n):
        flag = 0
        for j in [p for p in xrange(1,(i/2)+1) if x[p]!=0]:
            if (i%j == 0):
                flag = 1
                break
        if flag==0:
            x[i]=1
    print len([v for v in xrange(n) if x[v]==1])

Fixed submission:
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in [v for v in xrange(2,n+1) if v*v<n+1]:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:int(inp)+1].count(1)

Buggy python submission (verdict: Time Limit Exceeded):
import sys
for n in sys.stdin:
    n=int(n)
    prime = [2]
    for i in xrange(3,n):
        flag=0
        for j in prime:
            if (i%j == 0):
                flag=1
                break
        if flag==0:
            prime.append(i)
    print len(prime)

Fixed submission:
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in [v for v in xrange(2,n+1) if v*v<n+1]:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:int(inp)+1].count(1)

Buggy python submission (verdict: Time Limit Exceeded):
import sys
for n in sys.stdin:
    n=int(n)
    prime = [1]*(n+1)
    j=long(0)
    (prime[0],prime[1])=(0,0)
    for i in xrange(2,n+1):
        if type(i*i)==int:
            for j in xrange(i*i,n+1,i):
                prime[j]=0
    print prime.count(1)

Fixed submission:
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in [v for v in xrange(2,n+1) if v*v<n+1]:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:int(inp)+1].count(1)

Buggy python submission (verdict: Runtime Error):
import sys
    n=999999
    prime = [1]*(n+1)
    (prime[0],prime[1])=(0,0)
    for i in xrange(2,n+1):
        if type(i*i)==int:
            for j in xrange(i*i,n+1,i):
                prime[j]=0

for n in sys.stdin:
    print prime[:n-1].count(1)

Fixed submission:
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in [v for v in xrange(2,n+1) if v*v<n+1]:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:int(inp)+1].count(1)

Buggy python submission (verdict: Runtime Error):
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in xrange(2,n+1):
    if i*i<n+1:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:inp-1].count(1)

Fixed submission:
import sys
n=999999
prime = [1]*(n+1)
(prime[0],prime[1])=(0,0)
for i in [v for v in xrange(2,n+1) if v*v<n+1]:
        for j in xrange(i*i,n+1,i):
            prime[j]=0

for inp in sys.stdin:
    print prime[:int(inp)+1].count(1)
Buggy python submission (verdict: Runtime Error):
for x in range(input()):
    x=raw_input()
    x=x[::-1]
    y=raw_input()
    y=y[::-1]
    z=[0]*81
    for i in xrange(len(x)):
        z[i]=int(x[i])
    for j in xrange(len(y)):
        z[j]=z[j]+int(y[j])
    for k in xrange(max(len(x),len(y))):
        sum=z[k]
        z[k]=sum%10
        z[k+1]+=sum/10
    z.reverse()
    for j in xrange(len(z)):
        if z[0]==0:
            z.pop(0)
        else:
            break
    print ''.join(map(str,z))

Fixed submission:
for x in range(input()):
    x=raw_input()
    x=x[::-1]
    y=raw_input()
    y=y[::-1]
    z=[0]*81
    if len(x)>80 or len(y) >80:
        print 'overflow'
    else:
        for i in xrange(len(x)):
            z[i]=int(x[i])
        for j in xrange(len(y)):
            z[j]=z[j]+int(y[j])
        for k in xrange(max(len(x),len(y))):
            sum=z[k]
            z[k]=sum%10
            z[k+1]+=sum/10
        z.reverse()
        if z[0]!=0:
            print 'overflow'
        else:
            for j in xrange(len(z)):
                if z[0]==0:
                    z.pop(0)
                else:
                    break
            if len(z)==0:
                print 0
            else:
                print ''.join(map(str,z))
Buggy python submission (verdict: Runtime Error):
days_sum={1:31,2:29,3:31,4:30,5:31,6:30,7:31,8:31,9:30,
          10:31,11:30,12:31}
days2month={1:'Thursday',2:'Friday',3:'Saturday',4:'Sunday',
            5:'Monday',6:'Tuesday',7:'Wednesday'}

while True:
    month,day=map(int,raw_input().split(" "))
    if month==0 and day==0:
        break
    keika=0
    for i in range(1,month):
        keika += days_sum[i]
    keika+=day
    print days2month[keika%7]

Fixed submission:
days_sum={1:31,2:29,3:31,4:30,5:31,6:30,7:31,8:31,9:30,
          10:31,11:30,12:31}
days2month={1:'Thursday',2:'Friday',3:'Saturday',4:'Sunday',
            5:'Monday',6:'Tuesday',0:'Wednesday'}

while True:
    month,day=map(int,raw_input().split(" "))
    if month==0 and day==0:
        break
    keika=0
    for i in range(1,month):
        keika += days_sum[i]
    keika+=day
    print days2month[keika%7]
Buggy python submission (verdict: Runtime Error):
while True:
    # try:
    case=0
    while True:
        case+=1
        weight=input()
        if weight==0:
            break
        N=input()
        data=[[0 for i in range(2)] for j in range(N)]
        for i in range(N):
            data[i][0],data[i][1]=map(int,raw_input().split(","))
        table=[[-1 for i in range(weight+1)] for j in range(N)]
        for i in range(N):
            table[i][0]=0
        table[0][data[0][1]]=data[0][0]
        for i in range(0,N-1):
            for j in range(weight+1):
                if table[i][j]!=-1 and j+data[i+1][1] <= weight:
                    table[i+1][j+data[i+1][1]]=table[i][j]+data[i+1][0]
        sum=max(table[N-1])
        print "Case "+str(case)+":"
        print sum
        print table[N-1].index(sum)
#    except:
#break

Fixed submission:
case=0
while True:
    try:
        case+=1
        W=input()
        if W==0:
            break
        N=input()
        data=[[0 for i in range(2)] for j in range(N)]
        for i in range(N):
            data[i][0],data[i][1]=map(int,raw_input().split(","))
        table=[[-1 for i in range(W+1)] for j in range(N)]
        table[0][0],table[0][data[0][1]]=0,data[0][0]
        for i in range(1,N):
            for j in range(W+1):
                table[i][j]=table[i-1][j]
            for j in range(W+1):
                if table[i-1][j]!=-1 and j+data[i][1]<=W and\
                   table[i-1][j]+data[i][0]>table[i][j+data[i][1]]:
                    table[i][j+data[i][1]]=table[i-1][j]+data[i][0]
        print "Case "+str(case)+':'
        m=max(table[N-1])
        print m
        print table[N-1].index(m)
    except:
        break
Buggy python submission (verdict: Runtime Error):
def solve(data,p):
    L=[]
    if data[p[1]-1][p[0]-1]=="1":
        data[p[1]-1]=data[p[1]-1][:p[0]-1]+"0"+data[p[1]-1][p[0]:]
        L+=p
    else:
        return []
    bakuhu=[(p[0]-3,p[1]),(p[0]-2,p[1]),(p[0]-1,p[1]),(p[0]+1,p[1]),(p[0]+2,p[1]),(p[0]+3,p[1]),(p[0],p[1]-3),(p[0],p[1]-2),(p[0],p[1]-1),(p[0],p[1]+1),(p[0],p[1]+2),(p[0],p[1]+3)]
    for i in range(len(bakuhu)):
        if bakuhu[i][0]>0 and bakuhu[i][1] >0 and bakuhu[i][0] <9 and bakuhu[i][1] <9:
            L.extend(solve(data,bakuhu[i]))
    return L
    
while True:
    ndata=input()
    for i in range(ndata):
        raw_input()
        data=[]
        for j in range(8):
            data.append(raw_input())
        x=input()
        y=input()
        p=(x,y)
        L=solve(data,p)
        while len(L)!=0:
            x=L.pop(0)
            y=L.pop(0)
            data[y-1]=data[y-1][:x-1]+'0'+data[y-1][x:]
        print "Data"+str(i+1)+':'
        for i in range(len(data)):
            print data[i]
        

Fixed submission:
def solve(data,p):
    L=[]
    if data[p[1]-1][p[0]-1]=="1":
        data[p[1]-1]=data[p[1]-1][:p[0]-1]+"0"+data[p[1]-1][p[0]:]
        L+=p
    else:
        return []
    bakuhu=[(p[0]-3,p[1]),(p[0]-2,p[1]),(p[0]-1,p[1]),(p[0]+1,p[1]),(p[0]+2,p[1]),(p[0]+3,p[1]),(p[0],p[1]-3),(p[0],p[1]-2),(p[0],p[1]-1),(p[0],p[1]+1),(p[0],p[1]+2),(p[0],p[1]+3)]
    for i in range(len(bakuhu)):
        if bakuhu[i][0]>0 and bakuhu[i][1] >0 and bakuhu[i][0] <9 and bakuhu[i][1] <9:
            L.extend(solve(data,bakuhu[i]))
    return L
    
while True:
    try:
        ndata=input()
        for i in range(ndata):
            raw_input()
            data=[]
            for j in range(8):
                data.append(raw_input())
            x=input()
            y=input()
            p=(x,y)
            L=solve(data,p)
            while len(L)!=0:
                x=L.pop(0)
                y=L.pop(0)
                data[y-1]=data[y-1][:x-1]+'0'+data[y-1][x:]
            print "Data "+str(i+1)+':'
            for i in range(len(data)):
                print data[i]
    except:
        break
Buggy python submission (verdict: Runtime Error):
x1,y1,x2,y2=map(float,raw_input().split(" "))
if y1==y2 or x1==x2:
    if y1==y2:
        t0=0
    if x1==x2:
        t1=0
else:
    t0=(y2-y1)/(x2-x1)
    b0=y1-t0*x1
    t1=-(x2-x1)/(y2-y1)

for i in xrange(int(raw_input())):
    px,py=map(float,raw_input().split(" "))
    if t0==0 or t1==0:
        if t0==0:
            t1=-1
            a=1.0
            b=-t0
            c=y1
            d=0.0
            e=-t1
            f=px
        if t1==0:
            t0=-1
            a=0.0
            b=-t0
            c=x1
            d=1.0
            e=-t0
            f=py
    else:
        b1=py-t1*px
        a,b,c,d,e,f=1.0,-t0,b0,1.0,-t1,b1
    kouten_y=(c*e-f*b)/(a*e-b*d)
    kouten_x=(a*f-c*d)/(a*e-b*d)
    print "{0:.10f} {1:.10f}".format(kouten_x,kouten_y)

Fixed submission:
x1,y1,x2,y2=map(float,raw_input().split(" "))
if y1==y2 or x1==x2:
    if y1==y2:
        t0=0
        t1=-1
    if x1==x2:
        t1=0
        t0=-1
else:
    t0=(y2-y1)/(x2-x1)
    b0=y1-t0*x1
    t1=-(x2-x1)/(y2-y1)

for i in xrange(int(raw_input())):
    px,py=map(float,raw_input().split(" "))
    if t0==0 or t1==0:
        if t0==0:
            a=1.0
            b=-t0
            c=y1
            d=0.0
            e=-t1
            f=px
        if t1==0:
            a=0.0
            b=-t0
            c=x1
            d=1.0
            e=-t0
            f=py
    else:
        b1=py-t1*px
        a,b,c,d,e,f=1.0,-t0,b0,1.0,-t1,b1
    kouten_y=(c*e-f*b)/(a*e-b*d)
    kouten_x=(a*f-c*d)/(a*e-b*d)
    print "{0:.10f} {1:.10f}".format(kouten_x,kouten_y)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print(len(str(a+b)))

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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(len(str(a+b)))

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

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=int(input())
c=a+b
print(len(str(c)))

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

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

Fixed submission:
while True:
    try:
        a,b=map(int,input().split(' '))
        print(len(str(a+b)))
    except:
        break
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    a, b = map(int , input().split())
    sum = a + b
    print(len(str(a + b)))

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

while True:
    try:
        a, b = map(int , input().split())
        sum = a + b
        print(len(str(a + b)))
    except:
        break
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    a, b, c, d, e, f = map(float, input().split())
    tmp = a/d
    y = (c - tmp*f)/(b - tmp*e)
    x = (c - b*y)/a
    x = round(x)
    y = round(y)
    print('%.3f %.3f' % (x, y))

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

while True:
    try:
        a, b, c, d, e, f = map(float, input().split())
        x = (c*e - b*f) / (a*e - b*d)
        y = (a*f - d*c) / (a*e - b*d)
        print('{:.3f} {:.3f}'.format(x+0, y+0))
    except:
        break

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

while True:
    try:
        a, b, c, d, e, f = map(float, input().split())
        x = (c*e - b*f) / (a*e - b*d)
        y = (a*f - d*c) / (a*e - b*d)
        print('{:.3f} {:.3f}'.format(x+0, y+0)
    except:
        break

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

while True:
    try:
        a, b, c, d, e, f = map(float, input().split())
        x = (c*e - b*f) / (a*e - b*d)
        y = (a*f - d*c) / (a*e - b*d)
        print('{:.3f} {:.3f}'.format(x+0, y+0))
    except:
        break
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python
# -*- coding: utf-8 -*-

while True:
    s = input('')
    if s == '':
        break
    cut_ss = [s[i:i+3] for i in range(len(s[:-2]))]

    n_joi = 0
    n_ioi = 0
    for cut_s in cut_ss:
        if cut_s == 'JOI':
            n_joi += 1
        if cut_s == 'IOI':
            n_ioi += 1

    print(n_joi)
    print(n_ioi)

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

while True:
    try:
        input_s = input()
    except:
        break

    s_list = [input_s[i:i+3] for i in range(len(input_s[:-2]))]

    n_joi = 0
    n_ioi = 0
    for s in s_list:
        if s == 'JOI':
            n_joi += 1
        if s == 'IOI':
            n_ioi += 1

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

import math

PI = math.pi
r = int(input())
s = PI*r**2
l = 2*r*PI
print('%.6f %.6f' % (s, l))

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

import math

PI = math.pi
r = float(input())
s = r*r*PI
l = 2*r*PI
print('%.6f %.6f' % (s, l))
Buggy python submission (verdict: Runtime Error):
for i in range(1, 10):
  for j in range(1, 10):
    print i, "x", j, "=", i * j

Fixed submission:
for i in range(1, 10):
  for j in range(1, 10):
    print(str(i) + "x" + str(j) + "=" + str(i*j))
Buggy python submission (verdict: Runtime Error):
a = 0
b = 0
c = 0
for i in range(0, 10):
  inputNum = int(raw_input())

  if a < inputNum:
    a = inputNum
    continue
  elif b < inputNum:
    b = inputNum
    continue
  elif c < inputNum:
    c = inputNum

print a
print b
print c

Fixed submission:
inputNum = []

for i in range(0, 10):
  inputNum.append(int(raw_input()))

inputNum.sort(reverse=True)

for i in range(0, 3):
  print inputNum[i]
Buggy python submission (verdict: Runtime Error):
x = input()
print(pow(x, 3)\n)

Fixed submission:
x = input()
print(x ** 3)

Buggy python submission (verdict: Runtime Error):
x = input()
print(pow(x, 3) + "\n")

Fixed submission:
x = input()
print(x ** 3)

Buggy python submission (verdict: Runtime Error):
x = input()
x = pow(x, 3)
print(x + "\n")

Fixed submission:
x = input()
print(x ** 3)

Buggy python submission (verdict: Runtime Error):
x = int(raw_input())
print(x ** 3)

Fixed submission:
x = input()
print(x ** 3)
Buggy python submission (verdict: Runtime Error):
for i in range(1,9):
    for j in range(1,9):
        print str(i) + "x" + str(j) + "=" str(i*j)

Fixed submission:
for i in range(1,10):
    for j in range(1,10):
        print str(i) + "x" + str(j) + "=" +  str(i*j)

Buggy python submission (verdict: Runtime Error):
for i in range(1,10):
    for j in range(1,10):
        print str(i) + "x" + str(j) + "=" str(i*j)

Fixed submission:
for i in range(1,10):
    for j in range(1,10):
        print str(i) + "x" + str(j) + "=" +  str(i*j)
Buggy python submission (verdict: Runtime Error):
#coding:UTF-8

a = []
a,b,c = map(int,raw_input().split())
for i in range(a,b):
    if c % i == 0
    n += 1
print n

Fixed submission:
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n

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

a = []
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0
    n += 1
print n

Fixed submission:
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n

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

a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0
    n += 1
print n

Fixed submission:
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n

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

a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
    n += 1
print n

Fixed submission:
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n

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

a = []
a,b,c = map(int,raw_input().split())
for i in range(a,b):
    if c % i == 0:
        n += 1
print n

Fixed submission:
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n
Buggy python submission (verdict: Runtime Error):
#coding:UTF-8

n = 0
a,b,c = map(int,raw_input().split())
for i in range(a,b+1):
    if c % i == 0:
        n += 1
print n

Fixed submission:
#coding:UTF-8

a,b = map(int,raw_input().split())
d = a/b
r = a%b
f = float(a)/b
f = '%.8f' % (f)

print d,r,f
Buggy python submission (verdict: Runtime Error):
for i in range(1,10)
    for j in range(1,10)
        print("%d x %d =%d %d(i,j,i*j)

Fixed submission:
for i in range(1,10):
	for j in range(1,10):
		print("{}x{}={}".format(i,j,j*i))
Buggy python submission (verdict: Runtime Error):
a=[]
b=a.sort()
c=b.reverse()
print(c[0:2])

Fixed submission:
a=[int(input()) for i in range(10)]
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])

Buggy python submission (verdict: Runtime Error):
a=i[nt(input()) i in range(10)]
a.sort
a.reverse
print(a[0:2]) 

Fixed submission:
a=[int(input()) for i in range(10)]
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])

Buggy python submission (verdict: Runtime Error):
a=i[nt(input()) i in range(10)]
a.sort()
a.reverse()
print(a[0:2]) 

Fixed submission:
a=[int(input()) for i in range(10)]
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])

Buggy python submission (verdict: Runtime Error):
a=[int(input()) i in range(10)]
a.sort()
a.reverse()
print(a[0:2]) 

Fixed submission:
a=[int(input()) for i in range(10)]
a.sort()
a.reverse()
print(a[0])
print(a[1])
print(a[2])
Buggy python submission (verdict: Runtime Error):
while True:
    try:
        s=input().split(" ")
        num=int(s[0])+int(s[1])
        print(len(str(num)))
    escept:
        break
   

Fixed submission:
while True:
    try:
        s=input().split(" ")
        num=int(s[0])+int(s[1])
        print(len(str(num)))
    except:
        break
Buggy python submission (verdict: Runtime Error):
import math
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    if z==0:
        break

    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)

    print(round(x,3) round(y,3))
    

Fixed submission:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)

    if x<=0 and x>=-0.0005:
        x=0.000
    
    if y<=0 and y>=-0.0005:
        y=0.000
        
    print('{:.3f} {:.3f}'.format(x,y))

Buggy python submission (verdict: Runtime Error):
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

    z=a*e-b*d
    
    if z!==0:  
        y=(c*d-f*a)/(b*d-a*e)
        x=(c*e-f*b)/(a*e-b*d)
        print('{:.3f} {:.3f}'.format(x,y))
    
    

Fixed submission:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)

    if x<=0 and x>=-0.0005:
        x=0.000
    
    if y<=0 and y>=-0.0005:
        y=0.000
        
    print('{:.3f} {:.3f}'.format(x,y))

Buggy python submission (verdict: Runtime Error):
hile True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)

    if x<=0 and x>=-0.0005:
        x=0
    
    if y<=0 and y>=-0.0005:
        y=0
        
    print('{:.3f} {:.3f}'.format(x,y))
    
    

Fixed submission:
while True:
    try:
        line=input()

    except:
        break

    a,b,c,d,e,f=map(int, line.strip().split())

   
    
    y=(c*d-f*a)/(b*d-a*e)
    x=(c*e-f*b)/(a*e-b*d)

    if x<=0 and x>=-0.0005:
        x=0.000
    
    if y<=0 and y>=-0.0005:
        y=0.000
        
    print('{:.3f} {:.3f}'.format(x,y))
Buggy python submission (verdict: Runtime Error):
import math
s=int(imput())
m=100000
for i in range(1:s):
    m=m.ceil((m*1.05)/1000)*1000

print(m)
    

Fixed submission:
import math
s=int(input())
m=100000
for i in range(s):
    m=math.ceil((m*1.05)/1000)*1000

print(m)