import sys
import math
n=int(input())
list1=[]
while n!=1:
for i in range(2,int(math.sqrt(n))+1):
if n%i==0:
n=n//i
list1.append(i)
break
else:
list1.append(n)
break
for i in list1:
print(i,end=' ')


京公网安备 11010502036488号