import math n = int(input()) for i in range(n): a = int(input()) print((a*1.5)*math.sqrt(3)*a/2)