eolymp
bolt
Try our new interface for solving problems
Problems

Big Number

Big Number

In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you have to determine the number of digits in the factorial of the number. \InputFile Input consists of several lines of integer numbers. The first line contains an integer \textbf{T}, which is the number of cases to be tested, followed by \textbf{T} lines, one integer \textbf{1} ≤ \textbf{n} ≤ \textbf{10^7} on each line. \OutputFile The output contains the number of digits in the factorial of the integers appearing in the input.
Time limit 1 second
Memory limit 64 MiB
Input example #1
2
10
20
Output example #1
7
19
Source Stage II All-Ukrainian Olympiad 2010-2011 Berdichev