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