n = int(input()) r = [int(input()) for _ in range(n)] for i in r: print((3**0.5)*(i**2)*3/4)