#include using namespace std; #define rep(i,a,b) for(int i=a;i bool chmin(T &a,const T b){if(a>b){a=b;return 1;}return 0;} template bool chmax(T &a,const T b){if(a>N>>M; vector p(N+1); rep(i,0,M){ int a,b; cin>>a>>b; p[N-a]++; p[N+1-b]--; } rep(i,0,N){ cout<