#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  if (m > 1 && m < 10) {
    int ar[n];
    ar[0] = m;
    for (int i = 1; i < n; i++) {
      ar[i] = 0;
    }
    for (int i = 0; i < n; i++) {
      cout << ar[i];
    }
  } else {
    if (n > 1) {
      int ar1[n];
      for (int i = 0; i < n - 1; i++) {
        ar1[i] = 1;
      }
      ar1[n - 1] = 0;
      for (int i = 0; i < n; i++) {
        cout << ar1[i];
      }
    } else {
      cout << "-1";
    }
  }
  return 0;
}
