i=p=q=0;n=int(input())while q<n: c=j=0;i+=1 while j<i:j+=1;c+=i%j==0 if c>p:p=c;q+=1print(i)
18
2520
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!