a=b=k=r=1exec'a=a*k+b;b*=k;k+=1;'*input()while r*a%b:r+=1print r
18
4084080
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!