#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n,m; cin>>n>>m; vector A(n+2); ll geta=0; rep(i,m){ ll p,q; cin>>p>>q; A[p+1]-=2; A[max(1LL,p-q+1)]+=1; A[min(p+q+1,n+1)]+=1; geta+=max(0LL,q-p); } ll now=0; for(int i=1;i<=n;i++){ A[i]+=A[i-1]; now+=A[i]; if(i>1) cout<<" "; cout<