public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
int n = sc.nextInt();
for (int i = m; i <= n; i++) {
String str = "";
str += i + "=";
int num = i;
while(num % 2 == 0){
str += 2 + "*";
num /= 2;
}
while(num % 3 == 0){
str += 3 + "*";
num /= 3;
}
while(num % 5 == 0){
str += 5 + "*";
num /= 5;
}
while(num % 7 == 0){
str += 7 + "*";
num /= 7;
}
if (num % 2 > 0 && num % 3 > 0 && num % 5 > 0 && num % 7 > 0 && num > 1)
str += num + " ";
System.out.println(str.substring(0,str.length()-1));
}
}
}