#include<cstdio> #include<iostream> using namespace std; int main(void) { int i,n; cin >> n; for(i=1;i<=n;i++) { if(n%i==0) printf("%d\n",i); else continue; } return 0; }