eolymp
bolt
Try our new interface for solving problems
Problems

Factorial

Factorial

Find the value of $n!~mod~3469708049238200000$. \InputFile One integer $n~(1 \le n \le 10^{18})$. \OutputFile Print $n!~mod~3469708049238200000$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
6
Output example #1
720
Source 2014 KBTU Open, Spring Kazakhstan, Almaty, April, 20, Problem D