Saaho and Dream Girl clashes at the box office.Saaho is a big budget movie as compared to Dream girl So Saaho started well at the Box office. Total collections of Saaho at the end of Nth day at the box office is given by AN.As the review of Dream Girl is positive, Its collection pick up day by day and the total collections of Dream Girl at the end of Nth day at the box office is given by N!. Find minimum number of days at the box office in which Dream girl collection crosses the Saaho collection.
Input
The first line of the input contains number T(1<=T<=105), the number of testcases.
Each test case consists of a single number A(2<=A<=106).
Output
For each test cases print the minimum number of days in new line.
for Test case 1 , 1!<21,2!<22,3!<23 but 4!>24
and similar for other test cases.