# your code goes heren=int(input())for a in range(1,n+1): if(n%a==0): print(a)
10
1 2 5 10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!