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 0.01s 7244KB
stdin
5
stdout
60