#include <bits/stdc++.h>
const int INF = 1e9;
const long long lINF = 1e18;
const double EPS = 1e-12;
using namespace std;
int n, t;
int main() {
  cin >> n >> t;
  if (n == 1) {
    if (t == 10) {
      cout << -1 << endl;
    } else {
      cout << t << endl;
    }
  } else {
    int res = 1;
    for (int i = 0; i < n - 1; i++) {
      res = (res * 10) % t;
    }
    printf("1");
    for (int i = 0; i < n - 2; i++) {
      printf("0");
    }
    printf("%c\n", '0' + (char)((t - res) % t));
  }
  return 0;
}
