n,a,b=map(int,input().split()) x=list(map(int,input().split())) def root(x): if x!=parent[x]: x=parent[x] return x def unite(x,y): rx=root(x) ry=root(y) if rank[rx]=2: node[l]+=1 node[r-1]-=1 for i in range(n): node[i+1]+=node[i] for i in range(n): if node[i]>0: unite(i,i+1) for i in range(n): print(size[root(i)])