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