#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y;
  cout << "Pleas Enter Two Numbers : ";
  cin >> x >> y;
  if (x >= 10 or y >= 10) {
    cout << "-1";
  } else {
    cout << x * y;
  }
  return 0;
}
