e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

The Factorial

The Factorial

Given the value of n! (n! = 1 * 2 * ... * (n - 1) * n). Find the value of n.

Input

The value of n! (1n2000).

Output

Print the value of positive integer n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5040
Output example #1
7