n,m=map(int,input().split()) s=[0]*(n+5) for i in range(m): l,r=map(int,input().split()) s[r]+=1 s[l+1]-=1 for i in range(1,n+5): s[i]+=s[i-1] for i in range(n,0,-1): print(s[i])