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