#include int main(void) { int n,i; scanf("%d",&n); for(i=1;i<=n;++i) { if(n%i==0) { printf("%d\n",i); } } return 0;}
#includemain(){int a,i;scanf("%d",a);if(a<0||a>1000)return;for(i=2;i<=a;i++)if(a%i==0)printf("%d,",i);}