import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') n,m = map(int,input().split()) dp = [0]*n 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] = dp[i]+dp[i-1] for i in range(n-1,-1,-1): print(dp[i])