Problem: Now it's time of Olympiads. Vanya and Egor decided to make his own team to take part in a programming Olympiad. They've been best friends ever since primary school and hopefully, that can somehow help them in teamwork.

For each team Olympiad, Vanya takes his play cards with numbers. He takes only the cards containing numbers 1 and 0. The boys are very superstitious. They think that they can do well at the Olympiad if they begin with laying all the cards in a row so that:

  * there wouldn't be a pair of any side-adjacent cards with zeroes in a row; 
  * there wouldn't be a group of three consecutive cards containing numbers one. 



Today Vanya brought n cards with zeroes and m cards with numbers one. The number of cards was so much that the friends do not know how to put all those cards in the described way. Help them find the required arrangement of the cards or else tell the guys that it is impossible to arrange cards in such a way.

Input

The first line contains two integers: n (1 ≤ n ≤ 106) — the number of cards containing number 0; m (1 ≤ m ≤ 106) — the number of cards containing number 1.

Output

In a single line print the required sequence of zeroes and ones without any spaces. If such sequence is impossible to obtain, print -1.

Examples

Input

1 2


Output

101


Input

4 8


Output

110110110101


Input

4 10


Output

11011011011011


Input

1 5


Output

-1

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long MOD = 1e9 + 7;
long long inf = 1000000000000;
bool isPrime(long long n) {
  if (n <= 1) return false;
  if (n <= 3) return true;
  if (n % 2 == 0 || n % 3 == 0) return false;
  for (long long i = 5; i * i <= n; i = i + 6)
    if (n % i == 0 || n % (i + 2) == 0) return false;
  return true;
}
long long power(long long a, long long b) {
  if (a == 0) return 0;
  long long res = 1;
  while (b > 0) {
    if (b & 1) res = (res * a);
    b >>= 1;
    a = (a * a);
  }
  return res;
}
vector<long long> decToBinary(long long n) {
  vector<long long> v;
  for (long long i = 31; i >= 0; i--) {
    long long k = n >> i;
    if (k & 1)
      v.push_back(1);
    else
      v.push_back(0);
  }
  return v;
}
long long binarySearch(long long arr[], long long l, long long r, long long x) {
  if (r >= l) {
    long long mid = l + (r - l) / 2;
    if (arr[mid] == x) return mid;
    if (arr[mid] > x) return binarySearch(arr, l, mid - 1, x);
    return binarySearch(arr, mid + 1, r, x);
  }
  return -1;
}
long long maxResult(long long n, long long a, long long b, long long c) {
  long long maxVal = 0;
  for (long long i = 0; i <= n; i += a)
    for (long long j = 0; j <= n - i; j += b) {
      float z = (float)(n - (i + j)) / c;
      if (floor(z) == ceil(z)) {
        long long x = i / a;
        long long y = j / b;
        maxVal = max(maxVal, x + y + (long long)z);
      }
    }
  return maxVal;
}
bool binary_search_vector(const vector<long long>& sorted_vec, long long key) {
  size_t mid, left = 0;
  size_t right = sorted_vec.size();
  while (left < right) {
    mid = left + (right - left) / 2;
    if (key > sorted_vec[mid]) {
      left = mid + 1;
    } else if (key < sorted_vec[mid]) {
      right = mid;
    } else {
      return true;
    }
  }
  return false;
}
void SeiveOfEratosthenes(long long n, long long k) {
  bool prime[n + 1];
  vector<long long> v;
  memset(prime, true, sizeof(prime));
  for (long long i = 2; i * i <= n; i++) {
    if (prime[i]) {
      for (long long j = i * i; j <= n; j += i) {
        prime[j] = false;
      }
    }
  }
  for (long long i = 2; i <= n; i++) {
    if (prime[i]) {
      v.push_back(i);
    }
  }
}
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
void solve() {
  long long n, m;
  cin >> n >> m;
  if (n > m + 1 || m > 2 * n + 2)
    cout << -1;
  else {
    long long x = n;
    long long y = m;
    long long cnt = 0;
    long long flag = 0;
    while (x != 0 || y != 0) {
      if (y > x && cnt < 2) {
        cout << 1;
        cnt++;
        y--;
      }
      if (y > x && cnt == 2) {
        cout << 0;
        cnt = 0;
        x--;
      }
      if (y < x) {
        flag = 1;
        x--;
      }
      if (y == x) {
        for (long long i = 0; i < x; i++) cout << "01";
        x = 0;
        y = 0;
      }
    }
    if (flag) cout << 0;
  }
}
int32_t main() {
  long long t = 1;
  while (t--) {
    solve();
  }
}