t = gets.to_i t.times do r = gets.to_f puts 3 * Math.sqrt(3) * r**2 / 4 end