import math t = int(input()) for i in range(t): r = int(input()) ans = 3 * (1/2) * r**2 * math.sin(math.radians(120)) print(ans)