from math import sqrt t = int(input()) for _ in range(t): r = float(input()) ans = r * r * sqrt(3) * 3 / 4 print(ans)