#include using namespace std; int main(){ int N, M; cin >> N >> M; vector L(M), R(M); for (int i = 0; i < M; i++){ cin >> L[i] >> R[i]; R[i]--; } vector imos(N + 1, 0); for (int i = 0; i < M; i++){ imos[R[i]]++; imos[L[i]]--; } for (int i = 0; i < N; i++){ imos[i + 1] += imos[i]; } for (int i = N - 1; i >= 0; i--){ cout << imos[i] << endl; } }