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