#include <bits/stdc++.h>
using namespace std;
int a[11][105];
int main() {
  int n, t;
  for (int i = 2; i <= 10; i++) {
    a[i][1] = 1;
    for (int j = 2; j <= 100; j++) a[i][j] = (a[i][j - 1] * 10 + 1) % i;
  }
  scanf("%d%d", &n, &t);
  if (n == 1 && t == 10)
    puts("-1");
  else if (t == 10) {
    for (int i = 0; i < n - 1; i++) printf("1");
    puts("0");
  } else {
    int x = a[t][n - 1] * 10;
    x %= t;
    for (int i = 0; i < n - 1; i++) printf("1");
    printf("%d\n", t - x);
  }
  return 0;
}
