#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 10;
void solve()
{
int n,res=0,l=1;
cin>>n;
for(int i=2;i<=sqrt(n);i++)
{
int tp=n,cnt=0,st=i;
for(int j=i;tp%j==0&&tp!=0;j++)
{
tp/=j;
cnt++;
}
if(res<cnt)
{
res=cnt;
l=st;
}
}
if(res==0)
{
cout<<1<<endl<<n;
return;
}
cout<<res<<endl<<l;
for(int i=l+1;i<=l+res-1;i++)
cout<<"*"<<i;
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t=1;
while (t--)
{
solve();
}
return 0;
}
求连续因子
for(int j=i;tp%j==0&&tp!=0;j++)
{
tp/=j;
cnt++;
}