#include<bits/stdc++.h>usingnamespace std;#defineLLlonglong#definedebug(a) cout << #a <<" "<< a << endl#definePIIpair<int,int>constint maxn =1500;constint N =1e6+7, M = N *2;int ans, st;intmain(){#ifdefLOCALfreopen("../input.txt","r",stdin);// freopen("../output.txt", "w", stdout);#endif
LL n;
cin >> n;for(int i =2; i <=sqrt(n); i++){int res =0;int bg = i, x = i, val = n;while(val % x ==0){
val /= x;
x++;
res++;}if(res > ans){
st = bg;
ans = res;}}if(ans ==0){printf("%d\n%d",1, n);}else{printf("%d\n", ans);for(int i = st; i < st + ans; i++){printf("%d", i);if(i != st + ans -1)printf("*");}}return0;}