import math for _ in range(int(input())): R=input() r=float(R) hen=r*1.5/math.sin(math.radians(60))*2 print(hen*hen*hen/4/r)