Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print('{a:6f} {b:6f}'.format(a=r*r*math.pi, b=r*2*math.pi))



Fixed submission:
import math
r = float(input())
print('{a:6f} {b:6f}'.format(a=r*r*math.pi, b=r*2*math.pi))
Buggy python submission (verdict: Runtime Error):


class Process:
    def __init__(self,n,head,tail):
        self.n = n
        self.head = head
        self.tail = tail
        self.name = []
        self.time = []

def void enqueue(self,x):
    self.data = x
    tail = (tail+1) % n

def dequeue(self):
    self.x = self.[head]
    head = (head+1) % n
    return x

process = Process()

n,q = map(int,input(),split())

for i in range(n):
    name[i],time[i] = map(input(),split())
list(map(int,time))
elaps = 0
head = 1
tail = n+1
process = Process(n,head,tail)

while head != tail:
    process.name = dequeue()
    process.time = dequeue()
    c = min(q,process.time)
    process.time -= c
    elaps += c
    if process.time > 0:
        enqueue(process.time)
        enqueue(process.name)
    else:
        print(process.name,elaps)
    


Fixed submission:
n,q = map(int,input().split())
process = []
for i in range(n):
    name,time = input().split()
    process.append([name,int(time)])
elap = 0
out = []
while len(process) > 0:
    name,time = process.pop(0)
    temp_q = q
    while True:
        if time <= 0:
            out.append([name,elap])
            break
        if temp_q <= 0:
            process.append([name,time])
            break
        time -= 1
        temp_q -= 1
        elap += 1
for name,time in out:
    print(name,time)
Buggy python submission (verdict: Runtime Error):
S = double(input())

h = S / 3600
m = (S % 3600) / 60
s = (S % 3600) % 60

print(h,":",m,":",s)


Fixed submission:
x = int(input())

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':')

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

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':")


Fixed submission:
x = int(input())

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':')

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

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':")


Fixed submission:
x = int(input())

h = x // 3600
m = x % 3600 // 60
s = x  % 60

print(h,m,s,sep=':')
Buggy python submission (verdict: Runtime Error):
l = list(map(int, input().split()))

while(l != None):
    print(len(str(l[0]+l[1])))
    l = list(map(int, input().split()))


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

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

while(l != None):
    print(int(len(str(l[0]+l[1]))))
    l = list(map(int, input().split()))


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

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

while(l != None):
    length =len(str(l[0]+l[1]))
    print(int(length))
    l = list(map(int, input().split()))


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

Buggy python submission (verdict: Runtime Error):
l = list(map(int, input().split()))
a = []
while(l != None):
    length =len(str(l[0]+l[1]))
    a.append(length)
    l = list(map(int, input().split()))

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


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

Buggy python submission (verdict: Runtime Error):
l = list(map(int, input().split()))
a = []
while(l != []):
    length =len(str(l[0]+l[1]))
    a.append(length)
    l = list(map(int, input().split()))

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


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

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

while(l != []):
    length = len(str(l[0]+l[1]))
    print(length)
    l = list(map(int, input().split()))


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

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break
Buggy python submission (verdict: Time Limit Exceeded):
def prime(n):
    seq = list(range(2, n+1))
    while len(seq) > 0:
        prime = seq.pop(0)
        yield prime
        seq = [i for i in seq if not i % prime == 0]


while True:
	try:
		n=input()
		print len( list(prime(n)) )

	except EOFError:
		break


Fixed submission:
import sys

N=999999
a=[ 1 for i in range(N+1)]
a[0]=0
a[1]=0
for i in range(2, N+1):
	for j in range(i*i,N+1,i):
		a[j]=0


b=[ 0 for i in range(N+1)]
t=0
for i in range(2,N+1):
	t+=a[i]
	b[i]=t


for line in sys.stdin:
	n=int(line)
	print b[n]
Buggy python submission (verdict: Time Limit Exceeded):
m,n=map(int,raw_input().split())
N=n
M=10**9+7

ans=m
c=1
while n>1:
	ans=ans**2
	ans%=M
	n/=2
	c*=2

print ( ans*(m**(N-c)) )%M


Fixed submission:
m,n=map(int,raw_input().split())
M=10**9+7

def a(m,n):
	N=n
	ans=m
	c=1
	while n>1:
		ans=ans**2
		ans%=M
		n/=2
		c*=2

	N=N-c
	return ans,N


x=m; y=n

ans=1
while y>1:
	x,y=a(m,y)
	ans=(ans*x)%M

if y==1:
	print (ans*m)%M
else:
	print ans
Buggy python submission (verdict: Runtime Error):

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))


Fixed submission:

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Buggy python submission (verdict: Runtime Error):

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))


Fixed submission:

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Buggy python submission (verdict: Runtime Error):
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))


Fixed submission:

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print((a + b)//2)


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

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


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

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


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

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


Fixed submission:
a, b = map(int, input().split())
print((a + b)//2)
Buggy python submission (verdict: Runtime Error):
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break


Fixed submission:
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main()

Buggy python submission (verdict: Runtime Error):
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break


Fixed submission:
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main()
Buggy python submission (verdict: Runtime Error):
def main():
    n = int(input())
    for i in range(n):
        a, b, c=(int(input().split()))
        if a+b<=c or a+c<=b or b+c<=a:
            print("YES")
        else:
            print("NO")
            
main()


Fixed submission:
def main():
    n = int(input())
    for i in range(n):
        a=[int(x) for x in input().split()]
        a.sort()
        if a[0] ** 2 + a[1] ** 2 != a[2] ** 2:
            print("NO")
        else:
            print("YES")

main()

Buggy python submission (verdict: Runtime Error):
def main():
    n = int(input())
    n.sort()
    if n[0]**2+n[1]**2 != n[2]**2:
        print("NO")
    else:
        print("YES")

main()


Fixed submission:
def main():
    n = int(input())
    for i in range(n):
        a=[int(x) for x in input().split()]
        a.sort()
        if a[0] ** 2 + a[1] ** 2 != a[2] ** 2:
            print("NO")
        else:
            print("YES")

main()
Buggy python submission (verdict: Runtime Error):
def main():
    while 1:
        a,b=(int(x) for x in input().split())
        a1=a
        b1=b
        while b!=0:
            c=a%b
            a=b
            b=c
        print(a, a1*b1//a)

main()


Fixed submission:
def main():
    while True:
        try:
            a,b=(int(x) for x in input().split())
        except:
            break
        a1=a
        b1=b
        while b!=0:
            c=a%b
            a=b
            b=c
        print(a, a1*b1//a)

main()
Buggy python submission (verdict: Runtime Error):
x=input()
y=input()
x=int(x)
y=int(y)
xg=set()
yg=set()
for i in range(1,x+1):
    if x%i==0:
        xg.add(i)
for j in range(1,y+1):
    if y%j==0:
        yg.add(j)
gcd=xg & yg
print(max(gcd))


Fixed submission:
if __name__ == '__main__':
    s = input().split()
    if s[0] < s[1]:
        tmp = s[0]
        s[0] = s[1]
        s[1] = tmp
    while True:
        x = int(s[0]) % int(s[1])
        if x==0:
            break
        s[0] = s[1]
        s[1] = x
 
    print (s[1])

Buggy python submission (verdict: Time Limit Exceeded):
x,y=map(int,input().split())
xg=set()
yg=set()
for i in range(1,x+1):
    if x%i==0:
        xg.add(i)
for j in range(1,y+1):
    if y%j==0:
        yg.add(j)
gcd=xg & yg
print(max(gcd))


Fixed submission:
if __name__ == '__main__':
    s = input().split()
    if s[0] < s[1]:
        tmp = s[0]
        s[0] = s[1]
        s[1] = tmp
    while True:
        x = int(s[0]) % int(s[1])
        if x==0:
            break
        s[0] = s[1]
        s[1] = x
 
    print (s[1])

Buggy python submission (verdict: Time Limit Exceeded):
x,y=map(int,input().split())
xg=set()
yg=set()
for i in range(1,x+1):
    if x%i==0:
        xg.add(i)
for j in range(1,y+1):
    if y%j==0:
        yg.add(j)
gcd=xg & yg
print(max(gcd))


Fixed submission:
if __name__ == '__main__':
    s = input().split()
    if s[0] < s[1]:
        tmp = s[0]
        s[0] = s[1]
        s[1] = tmp
    while True:
        x = int(s[0]) % int(s[1])
        if x==0:
            break
        s[0] = s[1]
        s[1] = x
 
    print (s[1])

Buggy python submission (verdict: Time Limit Exceeded):
x,y=map(int,input().split())
xg=set()
yg=set()
for i in range(1,x+1):
    if x%i==0:
        xg.add(i)
for j in range(1,y+1):
    if y%j==0:
        yg.add(j)
gcd=xg & yg
print(max(gcd))


Fixed submission:
if __name__ == '__main__':
    s = input().split()
    if s[0] < s[1]:
        tmp = s[0]
        s[0] = s[1]
        s[1] = tmp
    while True:
        x = int(s[0]) % int(s[1])
        if x==0:
            break
        s[0] = s[1]
        s[1] = x
 
    print (s[1])

Buggy python submission (verdict: Runtime Error):
x,y=map(int,input().split())
ma=max(x,y)
for i in range(1,ma):
    if x%i==0 or y%i==0:
        gcd=i
print(max(gcd))


Fixed submission:
if __name__ == '__main__':
    s = input().split()
    if s[0] < s[1]:
        tmp = s[0]
        s[0] = s[1]
        s[1] = tmp
    while True:
        x = int(s[0]) % int(s[1])
        if x==0:
            break
        s[0] = s[1]
        s[1] = x
 
    print (s[1])
Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
c=0
for i in range(n):
    p=int(input())
    for j in range(2,p):
        if p%j==0:
            break
    else:
        c+=1
print(c)


Fixed submission:
n=int(input())
c=0
for i in range(n):
    p=int(input())
    if pow(2,p-1,p)==1 or p==2:
        c+=1
print(c)
Buggy python submission (verdict: Runtime Error):
from math import sqrt
x1,x2,y1,y2=map(int, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)


Fixed submission:
from math import sqrt
x1,x2,y1,y2=map(float,input().split())
a=abs(x1-y1)**2
b=abs(x2-y2)**2
s=sqrt(a+b)
print(s)

Buggy python submission (verdict: Runtime Error):
from math import sqrt
x1,x2,y1,y2=map(double, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)


Fixed submission:
from math import sqrt
x1,x2,y1,y2=map(float,input().split())
a=abs(x1-y1)**2
b=abs(x2-y2)**2
s=sqrt(a+b)
print(s)

Buggy python submission (verdict: Runtime Error):
from math import sqrt
x1,x2,y1,y2=map(float, print().split())
a=abs(x1-y1)
b=abs(x2-y2)
s=sqrt(a+b)
print(s)


Fixed submission:
from math import sqrt
x1,x2,y1,y2=map(float,input().split())
a=abs(x1-y1)**2
b=abs(x2-y2)**2
s=sqrt(a+b)
print(s)
Buggy python submission (verdict: Runtime Error):
import math
a,b,c=map(int,input().split())
sinc=round(math.sin(math.radians(c)))
s=1/2*a*b*sinc
l=math.sqrt(a**2+b**2-2*a*b*cosc)+a+b
h=s*2/a
print(s)
print(l)
print(h)


Fixed submission:
import math
a,b,c=map(int,input().split())
sinc=math.sin(math.radians(c))
cosc=math.cos(math.radians(c))
s=1/2*a*b*sinc
l=math.sqrt(a**2+b**2-2*a*b*cosc)+a+b
h=s*2/a
print(s)
print(l)
print(h)
Buggy python submission (verdict: Runtime Error):
class Dice:
    def __init__(self,t,f,r,l,b,u):
        self.t = t
        self.f = f
        self.r = r
        self.l = l
        self.b = b
        self.u = u
        self.a=[t,f,r,l,b,u]
        self.direction={'S':(4,0,2,3,5,1),'N':(1,5,2,3,0,4),'E':(3,1,0,5,4,2),'W':(2,1,5,0,4,3),'Y':(0,3,1,4,2,5)}
    def roll(self,d):
        self.a=[self.a[i] for i in self.direction[d]]
        self.t = self.a[0]
        self.f = self.a[1]
        self.r = self.a[2]
        self.l = self.a[3]
        self.b = self.a[4]
        self.u = self.a[5]
t,f,r,l,b,u=map(int,input().split())
dice1=Dice(t,f,r,l,b,u)
t,f,r,l,b,u=map(int,input().split())
dice2=Dice(t,f,r,l,b,u)
s='SSSEWW'
w='YYY'
ans='No'
for j in s:
    for r in w:
        if dice1.a==dice2.a:
            ans='Yes'
            break
        dice2.roll(r)
    else:
        dice2.roll(j)
        continue
    break
print(ans)


Fixed submission:
class Dice:
    def __init__(self,t,f,r,l,b,u):
        self.t = t
        self.f = f
        self.r = r
        self.l = l
        self.b = b
        self.u = u
        self.a=[t,f,r,l,b,u]
        self.direction={'S':(4,0,2,3,5,1),'N':(1,5,2,3,0,4),'E':(3,1,0,5,4,2),'W':(2,1,5,0,4,3),'Y':(0,3,1,4,2,5)}
    def roll(self,d):
        self.a=[self.a[i] for i in self.direction[d]]
        self.t = self.a[0]
        self.f = self.a[1]
        self.r = self.a[2]
        self.l = self.a[3]
        self.b = self.a[4]
        self.u = self.a[5]
t,f,r,l,b,u=map(int,input().split())
dice=Dice(t,f,r,l,b,u)
n=int(input())
s='SSSEWW'
yw='YYY'
for j in range(n):
    t,f=map(int,input().split())
    for d in s:
        if dice.t==t:
            break
        dice.roll(d)
    for t in yw:
        if dice.f==f:
            break
        dice.roll(t)
    print(dice.r)
Buggy python submission (verdict: Runtime Error):
x=1
while True:
    i=input()
    print('case {}: {}'.format(x,i))
    x+=1


Fixed submission:
import sys
 
i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1

Buggy python submission (verdict: Runtime Error):
x=1
while True:
    i=input()
    print('case {}: {}'.format(x,i))
    x+=1
    if i==0:
        break


Fixed submission:
import sys
 
i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1

Buggy python submission (verdict: Runtime Error):
i=1
x = int(input())
while x != 0 :
    print("Case {0}: {1}".format(i, x))
    x = int(input())
    i=i+


Fixed submission:
import sys
 
i=1
for s in sys.stdin:
  n = int(s)
  if n == 0:
    break
  print("Case ",i,": ",n,sep="")
  i += 1
Buggy python submission (verdict: Runtime Error):
x=[]
while True:
    x=input().split()
    x.sort()
    a,b=map(int,x)
    print(a,b)
    if a==None,b==None:
        break


Fixed submission:
while True:
    line = list(map(int, input().split()))
    if line==[0,0]: break
    print(' '.join(map(str,sorted(line))))
Buggy python submission (verdict: Runtime Error):
import numpy
r=int(input())
pi=numpy.pi
print(float(r*2*pi),r**2*pi)


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

Buggy python submission (verdict: Runtime Error):
import numpy
r=int(input())
pi=numpy.pi
print(float(r*2*pi),r**2*pi)


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

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


Fixed submission:
import math
r=float(input())
pi=math.pi
print('{} {}'.format(r**2*pi,r*2*pi))
Buggy python submission (verdict: Runtime Error):
while True:
    if h==0 and w==0:
        break
    h,w=map(int, input().split())
    for i in range(h):
        print('#'*w)


Fixed submission:
while True:
    a,b=input().split()
    if a=='0' and b=='0':
        break
    for i in range(int(a)):
        print('#'*int(b))
    print()
Buggy python submission (verdict: Runtime Error):
n=int(input())
for i in range(i,n+1):
    if i%3==0:
        print(' '+str(i),end='')
    elif i%10==3:
        print(' '+str(i),end='')


Fixed submission:
n = int(input())
ans = ""
for i in range(1, n + 1):
    if(i % 3 == 0):
        ans += " " + str(i)
        continue
    x = i
    while(x):
        if(x % 10 == 3):
            ans += " " + str(i)
            break
        x //= 10
print(ans)
Buggy python submission (verdict: Runtime Error):
n=int(input())
a=input().split()
for i in range(n-1,0,-1):
    print(a[i],end=' ')
print(a[i-1])


Fixed submission:
n=int(input())
a=input().split()
for i in range(-1,-n,-1):
    print(a[i],end=' ')
if n==1:
    print(a[0])
else:
    print(a[i-1])
Buggy python submission (verdict: Runtime Error):
n=int(input())
x={0:'S',1:'H',2:'C',3:'D'}
c=[[0]*13,[0]*13,[0]*13,[0]*13]
for i in range(n):
    a,b=input().split()
    if a=='S':
        c[0].insert(b,b)
    elif a=='H':
        c[1].insert(b,b)
    elif a=='C':
        c[2].insert(b,b)
    else:
        c[3].insert(b,b)
for i in range(4):
    for j in range(13):
        if c[i][j]==0:
            print(x[i],j)


Fixed submission:
n=int(input())
x={0:'S',1:'H',2:'C',3:'D'}
c=[[0]*13,[0]*13,[0]*13,[0]*13]
for r in range(n):
    a,b=input().split()
    b=int(b)-1
    if a=='S':
        c[0][b]=1
    elif a=='H':
        c[1][b]=1
    elif a=='C':
        c[2][b]=1
    else:
        c[3][b]=1
for i in range(4):
    for j in range(13):
        if c[i][j]==0:
            print(x[i],j+1)
Buggy python submission (verdict: Runtime Error):
while True:
    x=input()
    if x==0:
        break
    print(sum(int(s) for s in range(x)))



Fixed submission:
while True:
    n=input()
    if n=='0':
        break
    s=list(n)
    a=[int(i) for i in s]
    print(sum(a))

Buggy python submission (verdict: Runtime Error):
while True:
    x=input()
    if x==0:
        break
    print(sum(int(s) for s in x))


Fixed submission:
while True:
    n=input()
    if n=='0':
        break
    s=list(n)
    a=[int(i) for i in s]
    print(sum(a))

Buggy python submission (verdict: Runtime Error):
while True:
    x=input()
    if x==0:
        break
    print(sum(int(s) for s in x))


Fixed submission:
while True:
    n=input()
    if n=='0':
        break
    s=list(n)
    a=[int(i) for i in s]
    print(sum(a))

Buggy python submission (verdict: Runtime Error):
while True:
    n=input()
    if n==0:
        break
    s=list(n)
    a=[int(i) for i in s]
    print(sum(a))


Fixed submission:
while True:
    n=input()
    if n=='0':
        break
    s=list(n)
    a=[int(i) for i in s]
    print(sum(a))
Buggy python submission (verdict: Runtime Error):
import sys
str=[]
for line in sys.stdin:
    str.append(line)
s=''.join(str).lower
s=list(s)
for i in range(97, 97 + 26):
    count = 0
    for j in s:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)


Fixed submission:
a=''
while True:
    try:
        str = input().lower()
        a+=str
    except:
        break
for i in range(97, 97 + 26):
    count = 0
    for j in a:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)

Buggy python submission (verdict: Runtime Error):
import sys
str=[]
for line in sys.stdin:
    str.append(line)
s=''.join(str).lower
s=list(s)
for i in range(97, 97 + 26):
    count = 0
    for j in s:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)


Fixed submission:
a=''
while True:
    try:
        str = input().lower()
        a+=str
    except:
        break
for i in range(97, 97 + 26):
    count = 0
    for j in a:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)

Buggy python submission (verdict: Runtime Error):
str=input().split()
s=''.join(str).lower
s=list(s)
for i in range(97, 97 + 26):
    count = 0
    for j in s:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)
    print('No')



Fixed submission:
a=''
while True:
    try:
        str = input().lower()
        a+=str
    except:
        break
for i in range(97, 97 + 26):
    count = 0
    for j in a:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)
Buggy python submission (verdict: Runtime Error):
a,b=map(int, input().split())
mn=m**n
print(mn/1000000007)


Fixed submission:
m,n=map(int,input().split())
print(pow(m,n,1000000007))

Buggy python submission (verdict: Time Limit Exceeded):
m,n=map(int,input().split())
print(m**n%1000000007)


Fixed submission:
m,n=map(int,input().split())
print(pow(m,n,1000000007))

Buggy python submission (verdict: Time Limit Exceeded):
m,n=map(int,input().split())
mn=m**n
if mn<=1000000007:
    print(mn)
else:
    print(mn%1000000007)


Fixed submission:
m,n=map(int,input().split())
print(pow(m,n,1000000007))