Go Back
Pritam Loves Discount (100)
Description

Pritam lives in a ghostly town named Lodha Heaven (not that he wishes to live there). He travels through bus to another cities that he wishes to explore. Bus fare for any location is any positive integer R but if Pritam books ticket for the round trip from the same bus then he receives 10% discount on the total incurred bus fare.
Pritam always seeks to save some money through his bus trips so that he can buy BTS Official Album DVD’s. As Pritam is busy planning his future bus trips, he needs your help.
Your task is to find the minimum amount of bus fare Pritam will have to pay on a complete trip given the bus fare for one side journey for that trip.

Input

The first line of input contain an integer T denoting the number of test cases. Each test case consists of one line, which contains the integers R - the price for one side of the trip.

Output

For each test case, output a single line with the integer which is minimum amount of money Pritam will incur as bus fare on a particular trip. Your answer will be considered correct if it has an absolute error less than 10-2.

Constraints

1 <= T <= 105
10 <= R <= 1016

Example
Copy Input

Input:
2
25
20

Output:
45.00
36.00

Explanation

Test case 1: Total cost for the first trip is Rs 50. After applying 10% discount on total price, Pritam gets Rs 5 off. So total cost of complete trip is 50 - 5 = Rs 45.00

Test Case 2: Total cost for the first trip is Rs 40 . After applying 10% discount on total price, Pritam gets Rs 4 off. So total cost of complete trip is 40 - 4 = Rs 36.00

Single Round Match #02
3 hour contest



Announcement
Important:
There was a mistake encountered in setting of SRM02A and SRM02B. Points for Wrong Answer has been retracted. You can make submissions for SRM02A and SRM02B now. We apologise for the inconvenience.
For SRM02A: Output should have an exact precision of 2 digits after decimal.
Constraints are 1 <= T <= 100000

Problem Tags
math

Supported by our Coding Partner