for i in range(int(input())): print(3 * (3 ** 0.5) / 4 * (int(input())**2))