Buggy python submission (verdict: Runtime Error):
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
print(n)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N-2):
  m=list.count(str(i)
  answer.append(m)
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N):
	answer.append(str(list.count(str(i))))
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N-2):
	answer.append(list.count(str(i)))
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N-2):
	answer.append(list.count(i))
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N):
	answer.append(list.count(i))
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N+1):
	answer.append(list.count(i))
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer=[]
for i in range(1, N+1):
	m=0
	for j in range(0, len(list)):
  		if list[j] is str(i):
      		m=m+1
    	else:
      		m=m+0
	answer.append(m)
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer={}
for i in range(1, N+1):
	m=0
	for j in range(0, len(list)):
  		if list[j] is str(i):
      		m=m+1
    	else:
      		m=m+0
	answer.append(m)
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer={}
for i in range(1, N+1):
  m=0
  for j in range(0, len(list)):
  	if list[j] is str(i):
      m=m+1
    else:
      m=m+0
answer.append(m)
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)

Buggy python submission (verdict: Runtime Error):
N=map(int, input())
list=list(map(str, input().split()))
answer={}
for i in range(1, N+1):
  m=0
  for j in range(0, len(list)):
  	if list[j] is str(i):
      m=m+1
    else:
      m=m+0
  answer.append(m)
a_s='\n'.join(answer)
print(a_s)

Fixed submission:
N=int(input())
A=list(map(int, input().split()))
ans=[0]*N
for a in A:
  ans[a-1]+=1
for n in ans:
  print(n)