t=int(input()) a=[] for i in range(t):a+=[0.75*3**0.5*int(input())**2] for i in a:print(i)