#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int64_t n, q;
  cin >> n >> q;
  vector<int64_t> p0(n), p1(n);
  p0[0] = 0;
  p1[0] = 1;
  for (int64_t i = 1; i < n; i++) {
    p0[i] = p0[i - 1] ^ 1;
    p1[i] = p1[i - 1] ^ 1;
  }
  for (int64_t i = 1; i < n; i++) {
    p1[i] += p1[i - 1];
    p0[i] += p0[i - 1];
  }
  auto print = [&](int64_t s) {
    cout << s;
    for (int64_t i = 1; i < n; i++) {
      s ^= 1;
      cout << s;
    }
  };
  int64_t ans0 = 0, ans1 = 0;
  while (q--) {
    int64_t l, r;
    cin >> l >> r;
    l--, r--;
    int64_t one0 = p0[r], one1 = p1[r];
    if (l) {
      one0 -= p0[l - 1];
      one1 -= p1[l - 1];
    }
    ans0 += one0 * (r - l + 1 - one0);
    ans1 += one1 * (r - l + 1 - one1);
  }
  int64_t s = 0;
  if (ans0 < ans1) s = 1;
  print(s);
  return 0;
}
