n = int(input())
cnt = {} for x in map(int,input().split()): if x not in cnt: cnt[x] = 0 cnt[x] += 1 print(cnt[x],end = ‘ ‘)