import math for _ in range(int(input())): R=input() r=float(R) hen=r*1.5*2/math.cos(math.radians(30)) print(hen*r*1.5/2)