Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a=input()
if a=='SUN':
  print(7)
elif a=='MON':
  print(6)
elif a=='TUE':
  print(5)
elif a=='WED':
  pirnt(4)
elif a=='THU':
  print(3)
elif a=='FRI':
  print(2)
elif a=='SAT':
  print(1)
end

Fixed submission:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)

Buggy python submission (verdict: Runtime Error):
a=input()
if a=='SUN':
  print(7)
elif a=='MON':
  print(6)
elif a=='TUE':
  print(5)
elif a=='WED':
  pirnt(4)
elif a=='THU':
  print(3)
elif a=='FRI':
  print(2)
elif a=='SAT':
  print(1)
else:
  pass

Fixed submission:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)

Buggy python submission (verdict: Runtime Error):
a=input()
if a=='SUN':
  print(7)
elif a=='MON':
  print(6)
elif a=='TUE':
  print(5)
elif a=='WED':
  pirnt(4)
elif a=='THU':
  print(3)
elif a=='FRI':
  print(2)
elif a=='SAT':
  print(1)


Fixed submission:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)

Buggy python submission (verdict: Runtime Error):
a=input()
if a=='SUN':
  print(7)
elif a=='MON':
  print(6)
elif a=='TUE':
  print(5)
elif a=='WED':
  pirnt(4)
elif a=='THU':
  print(3)
elif a=='FRI':
  print(2)
else:
  print(1)


Fixed submission:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)

Buggy python submission (verdict: Runtime Error):
a=input()
if a=='SUN':
  print(7)
elif a=='MON':
  print(6)
elif a=='TUE':
  print(5)
elif a=='WED':
  pirnt(4)
elif a=='THU':
  print(3)
elif a=='FRI':
  print(2)
elif a=='SAT':
  print(1)
else:
  pass


Fixed submission:
c=0
a=input()
if a=='SUN':
  c+=7
elif a=='MON':
  c+=6
elif a=='TUE':
  c+=5
elif a=='WED':
  c+=4
elif a=='THU':
  c+=3
elif a=='FRI':
  c+=2
else:
  c+=1
print(c)
Buggy python submission (verdict: Runtime Error):
N=int(input())
for a in range(0,10):
  if N%a==0 and N/a<=9:
    print("Yes")
    break
  else:
    if a>=10:
      print("No")
    


Fixed submission:
n = int(input())
for i in range(1,10):
  if n%i==0 and n/i < 10:
    print("Yes")
    break
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)


Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  
    c+=d*e
print(c)



Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
import itertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)


Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
import intertools
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)


Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c+=d*e
print(c)


Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
for d,e in combinations(b,2):
  c=d*e
print(c)

Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
c=0
b=list(map(int,input().split()))
for i in range(a-1):
  c+=(a[i]*a[i+1])
print(c)

Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)

Buggy python submission (verdict: Runtime Error):
a=int(input())
c=[]
b=list(map(int,input().split()))
c=b.sort()
print(c[-1]*c[-2])

Fixed submission:
a=int(input())
import itertools 
b=list(map(int,input().split()))
c=0
for d,e in itertools.combinations(b,2):
  c+=d*e
print(c)
Buggy python submission (verdict: Runtime Error):
N=int(input())
if N%2=1:
  a=N+1/2
  print(a)
else:
  b=N/2
  print(b)

Fixed submission:
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)

Buggy python submission (verdict: Runtime Error):
N=int(input())
if N%2=1:
  a=N+1/2
  print(a)
else:
  b=N/2
  print(b)

Fixed submission:
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)

Buggy python submission (verdict: Runtime Error):
N=int(input())
if N%2=1:
  a=(N+1)/2
  print(a)
else:
  b=N/2
  print(b)

Fixed submission:
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)

Buggy python submission (verdict: Runtime Error):
N=int(input())
if N%2=1:
  a=(N+1)/2
  print(a)
else:
  b=N/2
  print(N)

Fixed submission:
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)

Buggy python submission (verdict: Runtime Error):
N=int(input())
if N%2=1:
  a=N+1/2
  print(a)
else:
  b=N/2
  print(N)

Fixed submission:
N=int(input())
if N%2==0:
  a=N/2
  b=a/N
  print(b)
else:
  t=N+1
  c=t/2
  d=c/N
  print(d)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
list_s=[]
list_s.append=map(int,input().split())

print(list_s>=b)

Fixed submission:
a,b=map(int,input().split())
d=0
c=list(map(int,input().split()))
for i in range(a):
  if c[i]>=b:
    d+=1
  else:
    pass
print(d)
Buggy python submission (verdict: Runtime Error):
N=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
c=list(map(int,input().split()))
d=0

for i in range(N):
  d+=b[a[i]+1]
  if i-1==e:
    d+=c[e]
  e=i
print(d)

Fixed submission:
N=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
c=list(map(int,input().split()))
d=0
ab=0
for i in range(N):
  d+=b[a[i]-1]
  
  if i != 0:
    if ab+1==a[i]:
      d+=c[ab-1]
   
  ab=a[i]
    
print(d)
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())

c=a+ba
d=a-b
e=a*b
f=[c,d,e]
print(max(f))
  


Fixed submission:
a,b=map(int,input().split())
c=a+b
e=a*b
d=a-b
print(max(c,e,d))
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
import math
c=[]
b+=(a-1)
for i in range(math.abs(b-a)+1):
  
  c+=b
  b-=1
print(int(c))


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

for i in range(b-(a-1),b+(a-1)+1):
  print(i,end=" ")
Buggy python submission (verdict: Time Limit Exceeded):
a,b=map(int,input().split())
b=b*2+1
c=1
while 1:
  if a-b>0:
    c+=1
  else:
    break
  
print(c)    

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

d=b*2+1

c=a/d

if c>int(c):
  print(int(c)+1)
else:
  print(int(c))
Buggy python submission (verdict: Runtime Error):
n,a,b=map(int,input().split())
print(min(n*a,b)


Fixed submission:
a,b,c=map(int,input().split())
d=a*b
if d>=c:
  print(c)
else:
  print(d)
Buggy python submission (verdict: Runtime Error):
import sys
a=list(input())
b=''
c=0
for i in range(4):
  if b=a[i]:
    c+=1
    if c>=2:
      print('Bad')
    else:
      print('Good')
    
  else:
    pass
  c=0
print('Bad')


Fixed submission:
a=input()
if a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:
  print('Bad')
else:
  print('Good')

Buggy python submission (verdict: Runtime Error):
a=list(int(input()))
if a[0]==a[1] or a[0]==a[2] or a[0]==a[3] or a[1]==a[2] or a[1]==a[3] or a[2]==a[3]:
  print('Good')
else:
  print('Bad')

Fixed submission:
a=input()
if a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:
  print('Bad')
else:
  print('Good')
Buggy python submission (verdict: Runtime Error):
import math as m
import sys
a,b=map(int,input().split())
c=0
if a+b<0:
  for i in range(a-1):
    c+=m.sqrt(b)
    b+=1
  print(c)
  sys.exit()
else:
  for i in range(a-1):
    c+=(b+1)
    b+=1
  print(c)
  

Fixed submission:
n,l=map(int,input().split())
ans=[]
sum=0
for i in range(n):
    ans.append([abs(l+i),l+i])
    sum+=l+i
ans.sort()
print(sum-ans[0][1])
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
c=list(map(int,input().split()))
d=0
e=0
f=1
while 1:
  d+=c[e]
  e+=1
  f+=1
  if d>=b:
    print(f)
    break
  else:
    pass

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

d = 0
ans = 1
for li in l:
    d += li
    if d > x:
        break
    ans += 1
print(ans)
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=[0]*a
b=map(int,input().split())
c=0
m=0
for i in range(a):
  m+=b[i]
m/=a
n=int(m)

if (m-n)>=0.5:
  m=int(m)+1
else:
  m=int(m)
m*=a
for j n range(a):
  c+=b[j]
  if c>=m:
    for z in range(j+1,a):
      d+=b[z]
print(int(c-d))

    


Fixed submission:
n=int(input())
a=list(map(int,input().split()))
m=10**4
for i in range(n):
  b=a[:i+1]
  c=a[i+1:]
  
  if abs(sum(b)-sum(c))<m:
    m=abs(sum(b)-sum(c))
    
print(m)

Buggy python submission (verdict: Runtime Error):
import math
N=int(input())
a=list(map(int,input().split()))
b=0
d=0
e=0
for i in range(N):
  b+=a[i]
c=b
b=b//N


if (c-b)*10>5:
  b+=1
for i in range(N):
  if a[i]>b:
    d+=b
  else:
    e+=b
print(math.sqrt(d-e))

  

Fixed submission:
n=int(input())
a=list(map(int,input().split()))
m=10**4
for i in range(n):
  b=a[:i+1]
  c=a[i+1:]
  
  if abs(sum(b)-sum(c))<m:
    m=abs(sum(b)-sum(c))
    
print(m)
Buggy python submission (verdict: Runtime Error):
a,b,c=map(int,input().split())
for in range(10):
  print(a*c-b)
  b=(a*c-b)

Fixed submission:
a,b,c=map(int,input().split())
for i in range(10):
  print(a*c-b)
  c=(a*c-b)
Buggy python submission (verdict: Runtime Error):
c=[]
a,b=map(int,input().split())
c[0]=a
c[1]=b


for i in range(2):
  
  d+=max(c)
  max(c)=d-1
print(d)

Fixed submission:
a,b=map(int,input().split())
c=0
for i in range(2):
  if a>=b:
    c+=a
    a-=1
  else:
    c+=b
    b-=1
print(c)

Buggy python submission (verdict: Runtime Error):
a=list(map(int,input().split()))
for i in range(2):
  
  b+=max(a)
  max(a)=max(a)-1
print(b)

Fixed submission:
a,b=map(int,input().split())
c=0
for i in range(2):
  if a>=b:
    c+=a
    a-=1
  else:
    c+=b
    b-=1
print(c)
Buggy python submission (verdict: Runtime Error):
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[5]-a[0]>b:
  print(':(')
else:
  print('Yay!')
  


Fixed submission:
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[4]-a[0]>b:
  print(':(')
else:
  print('Yay!')

Buggy python submission (verdict: Runtime Error):
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[5]-a[0]>a[6]:
  print(':(')
else:
  print('Yay!')
  


Fixed submission:
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[4]-a[0]>b:
  print(':(')
else:
  print('Yay!')

Buggy python submission (verdict: Runtime Error):
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[4]-a[0]>a[5]:
  print(':(')
else:
  print('Yay!')
  


Fixed submission:
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[4]-a[0]>b:
  print(':(')
else:
  print('Yay!')

Buggy python submission (verdict: Runtime Error):
a=[0]*5
for i in range(5):
  a=int(input())
b=int(input())
if a[4]-a[0]>a[5]:
  print(':(')
else:
  print('Yay!')
  

Fixed submission:
a=[0]*5
for i in range(5):
  a[i]=int(input())
b=int(input())
if a[4]-a[0]>b:
  print(':(')
else:
  print('Yay!')
Buggy python submission (verdict: Runtime Error):
a,b.c=map(int,input().split())
if a+b<c:
    print('NO')
else:
    print('YES')

Fixed submission:
a,b,c=map(int,input().split())
if a+b>=c and a<=c:
  print('YES')
else:
  print('NO')
Buggy python submission (verdict: Runtime Error):
a=list(input())
c=[]
g=0
c=a.reverse()

print(a[0]+str(len(a)-1)+c[0])


Fixed submission:
s = input()
print(s[0] + str(len(s)-2) + s[-1])

Buggy python submission (verdict: Runtime Error):
a=list(input())
c=reverse(a)
b=a.index(a[0])
d=c.index(c[0])
g=b-d
g-=1
print(a[0]+str(g)+c[0])

Fixed submission:
s = input()
print(s[0] + str(len(s)-2) + s[-1])
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  b=0
  e=i
  while 1:
    i%=2
    if i%2!=0:
      c[e]=b
      break
    b+=1
print(max(c))
      
  


Fixed submission:
a=int(input())
b=0
for i in range(7):
  if 2**i<=a:
    b=2**i
print(b)

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  e=i
  while 1:
    i%=2
    if i%2!=0:
      c[e]=b
      break
    b+=1
print(max(c))
      
  


Fixed submission:
a=int(input())
b=0
for i in range(7):
  if 2**i<=a:
    b=2**i
print(b)

Buggy python submission (verdict: Runtime Error):
a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
  while 1:
    b%=2
    if b%2!=0:
      c[i]=b
      break
    b+=1
print(max(c))
      
  

Fixed submission:
a=int(input())
b=0
for i in range(7):
  if 2**i<=a:
    b=2**i
print(b)
Buggy python submission (verdict: Runtime Error):
a=input()
if a=='a' or a=='i' or a=='u' or a=='e' a=='o':
  print('vowel')
else:
  print('consonant')

Fixed submission:
a=input()
if a=='a' or a=='i' or a=='u' or a=='e' or a=='o':
  print('vowel')
else:
  print('consonant')
Buggy python submission (verdict: Runtime Error):
a = input()
print(int(a+a**2+a**3))

Fixed submission:
a = int(input())
print(a+a**2+a**3)

Buggy python submission (verdict: Runtime Error):
a = input()
print(a+a*a+a*a*a)

Fixed submission:
a = int(input())
print(a+a**2+a**3)
Buggy python submission (verdict: Runtime Error):
S = list(input())
T = list(input())
cnt = 0
for t in range(0,int(len(S))-1):
  if S[t] != T[t]:
    cnt++
print(cnt)

Fixed submission:
S = list(input())
T = list(input())
cnt = 0
for t in range(0,int(len(S))):
  if S[t] != T[t]:
    cnt += 1
print(cnt)

Buggy python submission (verdict: Runtime Error):
S = list(input())
T = list(input())
cnt = 0
for t in range(int(len(S))):
  if S[t] != T[t]:
    cnt++
print(cnt)

Fixed submission:
S = list(input())
T = list(input())
cnt = 0
for t in range(0,int(len(S))):
  if S[t] != T[t]:
    cnt += 1
print(cnt)

Buggy python submission (verdict: Runtime Error):
S = list(input())
T = list(input())
cnt = 0
for s,t in S,T:
  if s != t:
    cnt++
print(cnt)

Fixed submission:
S = list(input())
T = list(input())
cnt = 0
for t in range(0,int(len(S))):
  if S[t] != T[t]:
    cnt += 1
print(cnt)

Buggy python submission (verdict: Runtime Error):
S = list(input().split(''))
T = list(input().split(''))
cnt = 0
for s,t in S,T:
  if s != t:
    cnt++
print(cnt)

Fixed submission:
S = list(input())
T = list(input())
cnt = 0
for t in range(0,int(len(S))):
  if S[t] != T[t]:
    cnt += 1
print(cnt)
Buggy python submission (verdict: Runtime Error):
import sys
def getmax():
    max = 0
    for i in p:
        if i > max:
            max = i
    return max
def getmin():
    min = p[0]
    for i in p:
        if i < min:
            min = i
    return min
X,N = map(int,input().split())
if N ==0:
    print(X)
    sys.exit()
if N == 1:
    p = int(input())
else:
    p = list(map(int,input().split()))  #
MIN = 101   #
minnum = 0
for i in range(-101,102):
    if not i in p:
        if abs(i-X) < MIN:
            MIN = abs(i-X)
            minnum = i
print(minnum)


Fixed submission:
import sys
def getmax():
    max = 0
    for i in p:
        if i > max:
            max = i
    return max
def getmin():
    min = p[0]
    for i in p:
        if i < min:
            min = i
    return min
X,N = map(int,input().split())
if N ==0:
    print(X)
    sys.exit()
if N == 1:
    p = int(input())
    print(p-1)
    sys.exit()
p = list(map(int,input().split()))  #
MIN = 101   #
minnum = 0
for i in range(-101,102):
    if not i in p:
        if abs(i-X) < MIN:
            MIN = abs(i-X)
            minnum = i
print(minnum)
Buggy python submission (verdict: Runtime Error):
S,W = map(int,input,split)

if S <= W :
    print("unsafe")

else :
    print("safe")

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")

Buggy python submission (verdict: Runtime Error):
S,W = amp(int,input,split)

if S <= W :
    print("unsafe")

else :
    print("safe")

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")

Buggy python submission (verdict: Runtime Error):
S = input()
W = input()

S = int(S)
W = int(W)

if S <= W :
    print("unsafe")

else :
    print("safe")

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")

Buggy python submission (verdict: Runtime Error):
#入力例全てOKだけど黄色#
S = input()
W = input()

S = int(S)
W = int(W)

if S <= W :
    print("unsafe")

elif S > W :
    print("safe")

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")

Buggy python submission (verdict: Runtime Error):
S = input()
W = input()

S = int(S)
W = int(W)

if S <= W :
    print("unsafe")

elif S > W :
    print("safe")
    

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")

Buggy python submission (verdict: Runtime Error):
S = input()
W = input()

if S <= W :
    print("unsafe")

elif S > W :
    print("safe")

Fixed submission:
#入力例全てOKだけど黄色#
S,W = map(int,input().split())

if S <= W :
    print("unsafe")

else :
    print("safe")
Buggy python submission (verdict: Runtime Error):
n = input()
for i in range(len(n)):
    count += int(n[i])
if count%9 == 0:
    print("Yes")
else:
    print("No")

Fixed submission:
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = input()
for i in range(len(n)):
    count += int(n[i])
if count%9 == 0:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Time Limit Exceeded):
import sys, math, itertools, collections, bisect 
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = int(input())
for i in range(1, n+1):
    cnt = 0
    for x in range(1, int(math.sqrt(i+1))):
        for y in range(1, int(math.sqrt(i+1))):
            d = (x+y)**2 -4*(x*x + y*y + x*y - i)
            if d < 0:
                pass
            else:
                z = (-(x+y)+math.sqrt(d))/2
                if z == int(z) and z >= 1:
                    cnt += 1
    print(cnt)


Fixed submission:
import sys, math, itertools, collections, bisect 
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = int(input())
for i in range(1, n+1):
    cnt = 0
    for x in range(1, int(math.sqrt(i+1))):
        for y in range(1, int(math.sqrt(i+1))):
            d = (x+y)**2 -4*(x*x + y*y + x*y - i)
            if d < 0:
                pass
            else:
                z = (-(x+y)+math.sqrt(d))/2
                if z == int(z) and z >= 1:
                    cnt += 1
    print(cnt)
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
A = list(map(int, input().split()))
q = int(input())
for i in range(q):
    b, c = map(int, input().split())
    for j in range(len(A)):
        if A[j] == b:
            A[j] = c
    print(sum(A))

Fixed submission:
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = int(input())
A = list(map(int, input().split()))
ans = sum(A)
cnt = collections.Counter(A)
#print(cnt)
q = int(input())
for i in range(q):
    b, c = map(int, input().split())
    ans += (c-b)*cnt[b]
    cnt[c] += cnt[b]
    cnt[b] = 0
    #print(cnt)
    print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
A = list(map(int, input().split()))
q = int(input())
for i in range(q):
    b, c = map(int, input().split())
    for j in range(len(A)):
        if A[j] == b:
            A[j] = c
    print(sum(A))

Fixed submission:
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

n = int(input())
A = list(map(int, input().split()))
ans = sum(A)
cnt = collections.Counter(A)
#print(cnt)
q = int(input())
for i in range(q):
    b, c = map(int, input().split())
    ans += (c-b)*cnt[b]
    cnt[c] += cnt[b]
    cnt[b] = 0
    #print(cnt)
    print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
import sys, math, itertools, collections, bisect 
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

from decimal import Decimal
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if a == b:
    print("YES")
elif v <= w:
    print("NO")
elif a < b and w*t + b > v*t + a:
    print("NO")
elif a < b and -(w*t) + b < -(v*t) + a:
    print("NO")
else:
    now_a = a
    now_b = b
    for i in range(1, t+1):
        if now_a < now_b:
            now_a += v
            now_b += w
        else:
            now_a -= v
            now_b -= w
        if now_a == now_b:
            print("YES")
            exit()
        else:
            pass
    print("NO")

Fixed submission:
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if (v-w)*t >= abs(a-b):
    print("YES")
else:
    print("NO")
Buggy python submission (verdict: Runtime Error):
t = input()
for i in range(len(t)):
    if t[i] == '?':
        t[i] = 'D'
print(t)

Fixed submission:
print(input().replace('?','D'))

Buggy python submission (verdict: Runtime Error):
t = input()
for i in range(len(t)):
    if t[i] == '?':
        t[i] = 'D'
print(ans)

Fixed submission:
print(input().replace('?','D'))

Buggy python submission (verdict: Time Limit Exceeded):
t = input()
ans = ""
for i in range(len(t)):
    if t[i] == '?':
        ans += 'D'
    else:
        ans += t[i]
print(ans)

Fixed submission:
print(input().replace('?','D'))

Buggy python submission (verdict: Time Limit Exceeded):
t = input()
if len(t) == 1:
    if t == '?':
        print('D')
    else:
        print(t)
elif len(t) == 2:
    if t == '??' or t == 'P?' or t == '?D':
        print('PD')
    elif t == 'D?':
        print('DD')
    elif t == '?P':
        print('DP')
    else:
        print(t)
else:
    ans = ''
    for i in range(len(t)):
        if i == 0:
            if t[i] == '?':
                if t[i+1] == '?':
                    ans += 'P'
                else:
                    ans += 'D'
            else:
                ans += t[i]
        elif i == len(t)-1:
            if t[len(t)-1] == '?':
                ans += 'D'
            else:
                ans += t[len(t)-1]
        else:
            if t[i+1] == '?' and t[i-1] == 'D':
                ans += 'P'
            elif t[i] == 'P' or t[i] == 'D':
                ans += t[i]
            else:
                ans += 'D'
    print(ans)

Fixed submission:
print(input().replace('?','D'))
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
list = []
for i in range(n):
  s = input()
  list.append(s)
  set_list = set(list)

print(len(set_list))

Fixed submission:
n = int(input())
list = []
for i in range(n):
  s = input()
  list.append(s)

set_list = set(list)
print(len(set_list))