Bob built an empire with five cities (C1,C2,C3,C4,C5). The only mode of transport in this empire is the train.
For each of them, a train leaves the city at each integer time (0,1,2,...).
There is a group of N people at C1, and they all want to go to C5.
At least how long does it take for all of them to reach there? You can ignore the time needed to transfer.
Input format
Output format
For each test case, print the minimum time required for all of the people to reach C5 (in minutes) in a new line.
Constraints
1≤T≤1000001≤N,A,B,C,D≤1000000000
For the first test case, it will take in total 5 minutes to reach C5.
In the first three minutes, 2 people will non-stop travel to C4 from C1. Since only 1 person can travel at a time from C4 to C5. Thus, total travel time is 5 minutes.