PizzaForces is Petya's favorite pizzeria. PizzaForces makes and sells pizzas of three sizes: small pizzas consist of 66 slices, medium ones consist of 88 slices, and large pizzas consist of 1010 slices each. Baking them takes 1515, 2020 and 2525 minutes, respectively.
Petya's birthday is today, and nn of his friends will come, so he decided to make an order from his favorite pizzeria. Petya wants to order so much pizza that each of his friends gets at least one slice of pizza. The cooking time of the order is the total baking time of all the pizzas in the order.
Your task is to determine the minimum number of minutes that is needed to make pizzas containing at least nn slices in total. For example:
The first line contains a single integer tt (1≤t≤1041≤t≤104) — the number of testcases.
Each testcase consists of a single line that contains a single integer nn (1≤n≤10161≤n≤1016) — the number of Petya's friends.
For each testcase, print one integer — the minimum number of minutes that is needed to bake pizzas containing at least nn slices in total.
6
12
15
300
1
9999999999999999
3
30
40
750
15
25000000000000000
15