#include <stdio.h> main() { int n,a,b=0,c; scanf("%d",&n); printf("%d=1*",n); for(a=2;a<n;a++) {c=0; if(n%a==0) printf("%d",a),b++,c=1; if(b%2==1&& c==1)printf("*"); } getchar(); }