Miles and kilometers
If you are travelling a lot you could have met the following problem: different countries use different measurement systems. Notably there are two major measurement systems for distances: metric and imperial. Metric system exploits kilometers while miles are used in the imperial system. It is known that one mile is approximately 1.609 kilometers. By interesting coincidence this is close enough to the value of the golden ration which is about 1.618. On this basis there is an interesting way of converting miles to kilometeres. Let's look into Fibonacci sequence: F_1 = F_2 = 1, F_n = F_{n-1} + F _{n-2}, for n > 2. The ratio of two successive Fibonacci numbers F_{n+1}/F_n сtends to golden ration as n tends to infinity. So you can partition the amount of miles you have into Fibonacci numbers, and you should use as large Fibonacci numbers as possible, then for each element in the partition you should go to the next Fibonacci number and sum up the elements again. That way you will get the approximate amount of kilometers. For example, 40 → 34 + 5 + 1 → 55 + 8 + 2 → 65. That means that 40 miles is approximately 65 kilometers (more precise value is 64,37 kilometers). Write a program that implements this method.
Input
The first line of input contains number t (1 ≤ t ≤ 10000) - the amount of test cases. The description of t test cases follows. Each test consists of a single integer m (1 ≤ m ≤ 10^15) — the amount of miles.
Output
For each test case output the amount of kilometers calculated using the method given in the statement.