#include <bits/stdc++.h>
using namespace std;
const int MN = 100 * 100 * 100 * 10;
int n, t;
string ans;
int main() {
  cin >> n >> t;
  int mod = 0;
  for (int i = 0; i < n - 1; i++) {
    ans += '1';
    mod = mod * 10 + 1;
    mod %= t;
  }
  mod = mod * 10;
  mod %= t;
  if (mod == 0)
    ans += '0';
  else
    ans += '0' + t - mod;
  if (ans[0] == '0') ans[0] += t;
  if (n == 1 && t == 10)
    cout << -1;
  else
    cout << ans;
  return 0;
}
