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