const main = (input) => {
    let lengthList = input.split(' ');
    let divide=[];
    let  num= parseInt(lengthList[0]);
    for(let i=2;i<num;i++){
       if(num%i==0){
          divide.push(i);
          num=num/i;
       }
    }
    console.log(num+":");
    for(let div of divide){
       console.log(" "+div);
    }
}

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
