import math as m t=int(input()) for i in range(t): r=int(input()) print(r*r*m.sin(2.0*m.pi/3.0)*1.5)