Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
s=[]
for i in range(N):
    s.append(A.count(i+1))
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
s=[]
for i in range(N):
    s.append(A.count(i+1))
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
s=[]
sumall=0
for i in range(N):
    s.append(A.count(i+1))
    sumall=sumall+s[i]
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[]
sumall=0
for i in range(N-1):
    s.append(A.count(i+1))
    sumall=sumall+s[i]
    print(s[i])
    if sumall>=N-1:
        i=i+1
        break
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[i for i in range(N)]
sumall=0
for i in range(N):
    s[i]=A.count(i+1)
    sumall=sumall+s[i]
    print(s[i])
    if sumall>=N-1:
        i=i+1
        break
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[i for i in range(N)]
sumall=0
for i in range(N):
    s[i]=A.count(i+1)
    sumall=sumall+s[i]
    print(s[i])
    if sumall>=N-1:
        i=i+1
        break
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[i for i in range(N)]
sumall=0
for i in range(N):
    s[i]=A.count(i+1)
    sumall=sumall+s[i]
    print(s[i])
    i=i+1
    if sumall>=N-1:
        break
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[]
sumall=0
for i in range(N):
    s.append(0) 
    s[i]=A.count(i+1)
    sumall=sumall+s[i]
    print(s[i])
    i=i+1
    if sumall>=N-1:
        break
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[]
sumall=0
while sumall<N-1: 
    s.append(0) 
    s[i]=A.count(i+1)
    sumall=sumall+s[i]
    print(s[i])
    i=i+1       
for _ in range(i,N):
    print(0)

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[] 
for i in range(N): 
    s.append(0) 
    s[i]=A.count(i+1) 
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[] 
for i in range(N): 
    s.append(0) 
    s[i]=A.count(i+1) 
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[] 
for i in range(N): 
    s.append(0) 
for i in range(N): 
    s[i]=A.count(i+1) 
for i in range(N): 
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input()) 
A=list(map(int,input().split())) 
i=0 
s=[] 
for i in range(N): 
    s.append(0) 
for i in range(N): 
    s[i]=A.count(i+1) 
for i in range(N): 
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A=list(map(int,input().split()))
i=0
s=[]
for i in range(N):
    s.append(0)
for i in range(N):
    for j in range(N-1):
        if i+1==A[j]:
            s[i]=s[i]+1
for i in range(N):
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
A=list(map(int,input().split()))
i=0
s=[]
for i in range(N):
    s.append(0)
for i in range(N):
    for j in range(N-1):
        if i+1==A[j]:
            s[i]=s[i]+1
for i in range(N):
    print(s[i])

Fixed submission:
import collections
n = int(input())
base = map(int,input().split())
c = collections.Counter(base)
for i in range(1,n):
    print(c[i])
print(0)