#include<bits/stdc++.h>

using namespace std;

void factorize(int n)
{
    cout<<n<<":";
    vector<int> res;
    for(int i=2;i*i<=n;i++)
    {
        while(n%i==0)
        {
            res.push_back(i);
            n/=i;
        }
    }
    if(n!=1) res.push_back(n);
    for(int i=0;i<res.size();i++)
    {
        cout<<" "<<res[i];
    }
    cout<<endl;
}

int main()
{
    int n;

    while(cin>>n)
    {
        factorize(n);
    }

    return 0;
}

