from typing import List, Tuple, Callable, TypeVar, Optional import sys import itertools import heapq import bisect import math from collections import deque, defaultdict from functools import lru_cache, cmp_to_key input = sys.stdin.readline if __file__ != 'prog.py': sys.setrecursionlimit(10 ** 6) def readints(): return map(int, input().split()) def readlist(): return list(readints()) def readstr(): return input()[:-1] N, M = readints() D = [0] * (N + 10) for _ in range(M): r, l = readints() l -= 1 D[l] += 1 D[r] -= 1 for i in range(N): D[i + 1] += D[i] ans = D[:N] ans.reverse() print(*ans, sep='\n')