#include <bits/stdc++.h>
using namespace std;
string toString(long long num) {
  stringstream ss;
  ss << num;
  string str = ss.str();
  return str;
}
long long toLong(string str) {
  long long res;
  istringstream ss(str);
  ss >> res;
  return res;
}
int main() {
  long long n, t;
  cin >> n >> t;
  int num = 0;
  char s[105];
  for (int i = 0; i < n; i++) {
    s[i] = '0';
  }
  if (t == 10 && n == 1) {
    cout << "-1";
    return 0;
  } else {
    if (t == 10)
      s[0] = '1';
    else
      s[0] = t + '0';
  }
  s[n] = '\0';
  cout << s << endl;
  return 0;
}
