eolymp
bolt
Try our new interface for solving problems
Problems

Factorial - 2

Factorial - 2

Find the number of digits in factorial of the integer n. (Factorial of a number n is a product of all positive integers from 1 to n)

Input

One integer n (1n1000000).

Output

Print the number of digits in n!

Time limit 2 seconds
Memory limit 128 MiB
Input example #1
7
Output example #1
4