All Indian Robotic Challenge (AIRC) is going to be held in NIT Raipur.Ajeet a student of nitrr want to participate in it and win it. In airc person whose robots will reach faster to end point will win .speed of bot is 20meters/Min.Ajeet want to Know the time Required by Bot to complete the following distance .

Note:-Truncate the Fraction Part of result. 

Input 
First line of Input Contain Number Of Test Case T.Next T lines contain a singe integer D in Meters.

Output 
Output a single integer T Time required to complete the following Distance in Seconds.

SAMPLE INPUT
5
30
45
60
20
40

SAMPLE OUTPUT
90
135
180
60
120
t=input()
while t:
	n=input()
	r=(n*60)/20
	r=int(r)
	print r
	t-=1