#include <bits/stdc++.h>
using namespace std;
long long h, q, s, c, i, k, j, n, m, z, b, l, a, d, t, cas, i1;
bool myf2(int i, int j) { return (i > j); }
vector<vector<int> > vvk;
vector<int> va, vb, vk;
vector<pair<int, int> > vp;
string we1, we2, wex;
char zn;
int main() {
  cin >> n >> t;
  if (t == 10) {
    if (n == 1)
      cout << "-1" << endl;
    else {
      wex.assign(n, '1');
      wex[n - 1] = '0';
    }
  } else {
    zn = t + '0';
    wex.assign(n, zn);
  }
  cout << wex << endl;
  return 0;
}
