#include <iostream>
using namespace std;

int main(){
    int A, B; cin >> A >> B;
    int result;
    result = -1;
    if(0<A<10 and 0<B<10){
        result = A*B;
    }
}

    cout << result << endl;
}