#include <stdio.h> int main() { int N; scanf("%d",&N); int i; for(i=1;i<N+1;i++) { if(N%i==0 && i<=N) printf("%d\n",i); } return 0; }