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