import sys from collections import deque, Counter sys.setrecursionlimit(5 * 10 ** 5) from pypyjit import set_param set_param('max_unroll_recursion=-1') input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 63 - 1 mod = 998244353 class Cumsum1d(): def __init__(self, A): self.n = len(A) self.Suma = [0] * (self.n + 1) for i in range(self.n): self.Suma[i + 1] += self.Suma[i] + A[i] def query(self, l, r): #0-indexed return self.Suma[r] - self.Suma[l] def get(self, i): return self.Suma[i + 1] - self.Suma[i] def __getitem__(self, p): if isinstance(p, int): return self.get(p) else: return self.query(p.start, p.stop) n, m = mi() ans = [0] * (n + 1) for i in range(m): l, r = mi() ans[r - 1] += 1 ans[l] -= 1 A = Cumsum1d(ans) for v in A.Suma[:-1][::-1][:-1]: print(v)