import math t = int(input()) for i in range(t): print((int(input())**2)*3*math.sqrt(3)/4)