fork download
  1. a=b=k=r=1
  2. exec'a=a*k+b;b*=k;k+=1;'*input()
  3. while r*a%b:r+=1
  4. print r
Success #stdin #stdout 3s 8976KB
stdin
18
stdout
4084080