from math import sin, pi t = int(input()) for _ in range(t): r = int(input()) print(r * r * sin(pi / 3) * 3 / 2)