var line=readline() line=parseInt(line) var num=Math.sqrt(line) var arr=[] for(let i=2;i<=num;i++){ while(line%i===0){ arr.push(i) line=parseInt(line/i) } } if(line!=1)arr.push(line) console.log(arr.join(' '))