#include using namespace std; #include using namespace atcoder; using ll = long long; #define rep(i, n) for (ll i = 0; i < ll(n); i++) int main(){ int n,m; cin >> n >> m; vector imos(n+1); rep(i,m){ int l,r; cin >> l >> r; r--; imos[r]++; imos[l]--; } rep(i,n) imos[i+1] += imos[i]; reverse(imos.begin(),imos.end()); for(int i = 1;i <= n;i++) cout << imos[i] << endl; }