eolymp
bolt
Try our new interface for solving problems
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