#include <iostream> using namespace std; int main() { int t,n,i; cin>>n; t=n; for(i=n;i>=i;i--) { if(t%i==0) { cout<<i<<" "; t=i; } } return 0; }