#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    int n, t;
    cin >> n >> t;
    if (n == 1 && t == 10)
        cout << -1;
    else
        cout << (t == 10 ? 1 : t) << string(n - 1, '0');
    cout << '\n';
}
