/*
#include <stdio.h>
int main()
{
float n;
scanf("%f",&n);
if(n>=50.0 && n<=60.)
printf("win");
else printf("lose");
}
*/
/*
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if((n>=30 && n<=40)||(n>=60 && n<=70))printf("win");
else printf("lose");
}
*/
/*
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if((n>=50 && n <=70) || (n%6 == 0)) printf("win");
else printf("lose");
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b,c;
int car = 170;
scanf("%d %d %d", &a, &b, &c);
if((a> car)&&(b> car)&&(c>car))
{
printf("PASS");
}
else{printf("CRASH");}
}
*/
#include <stdio.h>
int main (n)
{
int a, b;
scanf("%d %d",&a, &b);
if( (b%a) == 0){
printf("%d*%d=%d",a,(b/a),b);
}
else if((a%b) == 0){
printf("%d*%d=%d",b,(a/b),a);
}
else{printf("none");}
}



