r=list(int(input())for _ in range(int(input()))) [print(3*(3**.5)*(i**2)/4) for i in r]