Buggy python submission (verdict: Time Limit Exceeded):
num_all = int(input())
list = input().split(" ")

i = 1
while i <= num_all:
  data = list.count(str(i))
  #print(i)
  print(data)
  i = i+1

Fixed submission:
n=int(input())
#l=list(map(int,input().split()))  #inputした数値列をintにしてlistを作成 けどなぜか使えない
list = input().split(" ")
list_int = []
for i in list:
  list_int.append(int(i)) 
k = [0]*n                         #大きさnのリスト
for i in list_int:
  k[i-1] = k[i-1]+1
for j in range(n):
  print(k[j])

Buggy python submission (verdict: Time Limit Exceeded):
num_all = int(input())
list = input().split(" ")

list_int = []
for j in list:
  list_int.append(int(j))

i = 1
while i <= num_all:
  data = list_int.count(i)
  print(data)
  i = i+1

Fixed submission:
n=int(input())
#l=list(map(int,input().split()))  #inputした数値列をintにしてlistを作成 けどなぜか使えない
list = input().split(" ")
list_int = []
for i in list:
  list_int.append(int(i)) 
k = [0]*n                         #大きさnのリスト
for i in list_int:
  k[i-1] = k[i-1]+1
for j in range(n):
  print(k[j])

Buggy python submission (verdict: Time Limit Exceeded):
num_all = int(input())
list = input().split(" ")


list_int = []
for j in list:
  list_int.append(int(j))

i = 1
while i <= num_all:
  data = list_int.count(i)
  print(data)
  i = i+1

Fixed submission:
n=int(input())
#l=list(map(int,input().split()))  #inputした数値列をintにしてlistを作成 けどなぜか使えない
list = input().split(" ")
list_int = []
for i in list:
  list_int.append(int(i)) 
k = [0]*n                         #大きさnのリスト
for i in list_int:
  k[i-1] = k[i-1]+1
for j in range(n):
  print(k[j])

Buggy python submission (verdict: Time Limit Exceeded):
num_all = int(input())
list = input().split(" ")


list_int = []
for j in list:
  list_int.append(int(j))

i = 1
while i <= num_all:
  data = list_int.count(i)
  #print(i)
  print(data)
  i = i+1

Fixed submission:
n=int(input())
#l=list(map(int,input().split()))  #inputした数値列をintにしてlistを作成 けどなぜか使えない
list = input().split(" ")
list_int = []
for i in list:
  list_int.append(int(i)) 
k = [0]*n                         #大きさnのリスト
for i in list_int:
  k[i-1] = k[i-1]+1
for j in range(n):
  print(k[j])

Buggy python submission (verdict: Time Limit Exceeded):
num_all = int(input())
list = input().split(" ")


list_int = []
for j in list:
  list_int.append(int(j))

i = 1
while i <= num_all:
  data = list_int.count(i)
  #print(i)
  print(data)
  i = i+1

Fixed submission:
n=int(input())
#l=list(map(int,input().split()))  #inputした数値列をintにしてlistを作成 けどなぜか使えない
list = input().split(" ")
list_int = []
for i in list:
  list_int.append(int(i)) 
k = [0]*n                         #大きさnのリスト
for i in list_int:
  k[i-1] = k[i-1]+1
for j in range(n):
  print(k[j])

Buggy python submission (verdict: Runtime Error):
N = int(input())
A=[int(i) for i in input().split()]

B = [0 for i in range(len(A))]
for i in A:
    B[i] =B[i] + 1

for i in B:
    print(i)

Fixed submission:
N = int(input())
A=[int(i) for i in input().split()]

B = [0 for i in range(N)]
for i in A:
    B[i-1] =B[i-1] + 1

for i in B:
    print(i)

Buggy python submission (verdict: Runtime Error):
N = int(input())
A=[int(i) for i in input().split()]

B = [0 for i in range(len(A))]
for i in A:
    B[i] =B[i] + 1

for i in range(B):
    print(i)

Fixed submission:
N = int(input())
A=[int(i) for i in input().split()]

B = [0 for i in range(N)]
for i in A:
    B[i-1] =B[i-1] + 1

for i in B:
    print(i)