#include <iostream>

using namespace std;

int main(){
	int N, Q;

	cin >> N >> Q;

	int field[N+1];
	int ans[N];

	for(int i = 0; i < N+1; i++){
		field[i] = 0;
	}

	int l, r;
	for(int i = 0; i < Q; i++){
		cin >> l >> r;
		field[l-1]++;
		field[r]--;
	}

	for(int i = 0; i < N; i++){
		if(i == 0){
			ans[i] = field[i];
		} else {
			ans[i] = field[i] + ans[i-1];
		}
		cout << ans[i] % 2;
	}
	cout << "\n";
}