t = int(input()) import math for _ in range(t): r = int(input()) ans = 3 * r * r * math.sin(120 / 180 * 3.1415926535897932) / 2 print(ans)