WOBURN CHALLENGE 1995
PEG contra PCS

Problem 5: Factorial Power
(ICPSC 1983 #3)

INPUT FILE: test5.in
OUTPUT FILE: test5.out

The factorial of a whole number N (written "N!") is defined as follows:

N! = 1 x 2 x 3 x ... x (N-1) x N

For example, 10! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 = 3628800.

The "factorial length" of a number N is defined as the number of digits in N!.
Thus the factorial length of 10 is 7.

INPUT
On each of five lines is a positive integer N in the range 1..500.

OUTPUT
For each of the five inputs, output that number's factorial length in the format shown below.

Sample Input File

1
2
5
10
52

Output for Sample Input

The length of 1! is 1
The length of 2! is 1
The length of 5! is 3
The length of 10! is 7
The length of 52! is 68
Downloader failed! Response object 006~ASP 0159~Buffering Off~Buffering must be on.