n,m=map(int,input().split()) q=[0]*n for i in range(m): l,r=map(int,input().split()) q[-l]+=1 if r>1: q[-r+1]-=1 for i in range(n-1): q[i+1]+=q[i] print(*q,sep="\n")