#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a <= 9 && b <= 9) {
    cout << a << " * " << b << " = " << a * b << endl;
  } else {
    cout << "-1" << endl
         << a << " * " << b << " = " << a * b
         << ", but Takahashi cannot do this calculation, so print -1 instead."
         << endl;
  }
}
