#include <bits/stdc++.h>
int main() {
  int a, b;
  while (scanf("%d%d", &a, &b) == 2) {
    if (a >= 1 && a <= 9 && b <= 9 && b >= 1) {
      printf("%d×%d=%d.", a, b, a * b);
    } else {
      printf("-1");
    }
  }
  return 0;
}
