MOD=109546051211 t=raw_input() n=int(t) if(n>=587117): print(0) else: a=1 b=1 for i in range(1,n+1): a=(a*i)%MOD b=(b*a)%MOD print(b)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 2, in <module> EOFError: EOF when reading a line