$n = trim(fgets(STDIN)); for($i=0;$i<$n;$i++){ $a = trim(fgets(STDIN)); $S = $a*$a*sqrt(3)*0.5; echo $S."\n"; }