#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, z;
  cin >> a;
  cin >> b;
  z = a * b;
  if ((a <= 20) && (b <= 20)) {
    cout << z;
  } else {
    cout << -1;
  }
  return 0;
}
