Buggy python submission (verdict: Runtime Error):
n = int(input())
A = [0]*(n+1)
A[a] +=0   for a in input().split()

for e in A[1:]:
  print(e)

Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, m, c):
    A -= 1
    print(m - np.nonzero(A)[0].size)
    c +=1
    if c < m:
        print_sub(A, m, c)
    else:
        print("0")
        

n= int(input())
A = [int(a) for a in input().split()]
A = np.array(A)
c = 0
print_sub(A, n-1, c)


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Time Limit Exceeded):
import sys
input = sys.stdin.readline
import numpy as np

n= int(input())
A = [int(a) for a in input().split()]

A = np.array(A)

for i in range(n-1):
    A = A - 1
    print(n-1 -np.nonzero(A)[0].size)
print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, m, c):
    A -= 1
    print(m -np.nonzero(A)[0].size)
    c +=1
    if c < m:
        return print_sub(A, m, c)
    else:
        return

n= int(input())
A = [int(a) for a in input().split()]
A = np.array(A)
c = 0
print_sub(A, n-1, c)

print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, m, c):
    A = np.array(A)
    A -= 1
    print(m -np.nonzero(A)[0].size)
    c +=1
    if c < m:
        return print_sub(A, m, c)
    else:
        return

n= int(input())
A = [int(a) for a in input().split()]
c = 0
print_sub(A, n-1, c)

print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, m, c):
    A = np.array(A)
    A -= 1
    print(m -len(np.nonzero(A)[0]))
    c +=1
    if c < m:
        return print_sub(A, m, c)
    else:
        return

n= int(input())
A = [int(a) for a in input().split()]
c = 0
print_sub(A, n-1, c)

print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, Ones, m, c):
    A = np.array(A)
    A = A -Ones
    print(m -len(np.nonzero(A)[0]))
    c +=1
    if c < m:
        return print_sub(A, Ones, m, c)
    else:
        return

n= int(input())
A = [int(a) for a in input().split()]
Ones = np.array([1]*(n-1))
c = 0
print_sub(A, Ones, n-1, c)

print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Runtime Error):
import sys
input = sys.stdin.readline
import numpy as np

def print_sub(A, Ones, m, c):
    A = np.array(A)
    A = A -Ones
    print(n-1 -len(np.nonzero(A)[0]))
    c +=1
    if c < m:
        return print_sub(A, Ones, m, c)
    else:
        pass

n= int(input())
A = [int(a) for a in input().split()]
Ones = np.array([1]*(n-1))
c = 0
print_sub(A, Ones, n-1, c)

print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])

Buggy python submission (verdict: Time Limit Exceeded):
import sys
input = sys.stdin.readline
import numpy as np

n= int(input())
A = [int(a) for a in input().split()]

A = np.array(A)
Ones = np.array([1]*(n-1))

for i in range(n-1):
    A = A -Ones
    print(n-1 -len(np.nonzero(A)[0]))
print("0")


Fixed submission:
import sys
input = sys.stdin.readline

n = int(input())
A = [int(a) for a in input().split()]

sub_list = [0] *n

for a in A:
  sub_list[a-1] +=1

for i in range(n):
  print(sub_list[i])