import sys arr = list(map(int, sys.stdin.read().split())) for i in range(arr[1]): arr[1 + arr[2 + arr[0] + i]] += 1 print(*arr[2:2 + arr[0]])