#include using namespace std; #ifdef _RUTHEN #include #else #define show(...) true #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) template using V = vector; int main() { ios::sync_with_stdio(false); cin.tie(0); int N, M; cin >> N >> M; V imos(N + 1); rep(i, M) { int l, r; cin >> r >> l; imos[l - 1]++; imos[r]--; } rep(i, N) imos[i + 1] += imos[i]; for (int i = N - 1; i >= 0; i--) cout << imos[i] << '\n'; return 0; }