#include using namespace std; using ll=long long; const int INF=1e9; /* Library: https://yukicoder.me/users/24530/ai_code */ int main() { cin.tie(nullptr),cout.tie(nullptr); ios::sync_with_stdio(false); int n,q; cin >> n >> q; vector a(n+1,0); for(int i=0; i> x >> y; a[x-1]++; a[y]--; } vector p(n+1,0); for(int i=1; i<=n; i++){ p[i]=p[i-1]+a[i-1]; } for(int i=1; i<=n; i++){ cout << p[i]%2; } cout << endl; }