#include <bits/stdc++.h>
using namespace std;
int main() {
  float X, Y;
  cin >> X >> Y;
  {
    if (X, Y >= 1 && X, Y <= 9)
      cout << X * Y << endl;
    else
      cout << "-1" << endl;
  }
  return 0;
}
