<filename>Day 11/FLOW011.py<gh_stars>0
"""
In a company an emplopyee is paid as under: 
If his basic salary is less than Rs. 1500, then HRA = 10% of base salary and DA = 90% of basic salary.
If his salary is either equal to or above Rs. 1500, 
then HRA = Rs. 500 and DA = 98% of basic salary. 
If the Employee's salary is input, write a program to find his gross salary.

NOTE: Gross Salary = Basic Salary + HRA + DA

Input
The first line contains an integer T, total number of testcases. Then follow T lines, each line contains an integer salary.

Output
For each test case, output the gross salary of the employee in a new line. Your answer will be considered correct if the absolute error is less than 10-2.

Constraints
1 ≤ T ≤ 1000
1 ≤ salary ≤ 100000

Example
Input
3
1203
10042
1312

Output
2406.00
20383.16
2624
"""
# cook your dish here
t= int(input())
for i in range(t):
    sal= int(input())
    if sal<1500:
        gs= sal+(0.10*sal)+(0.90*sal)
    else:
        gs= sal+500+(0.98*sal)
    print('%0.2f' %gs)