#include <stdio.h>
#include <math.h>
int main ()
{
double w,r ,ar,ag ;
int n , l ,i ;
scanf ("%d",&n) ;
for (i=1 ; i<=n ; i++)
{
scanf ("%d",&l) ;
w = (6.00*l) /10.00 ;
r = (2.00*l) /10.00 ;
ar = acos(-1) * pow (r,2) ;
ag = l*w - ar ;
printf ("%.2lf %.2lf\n",ar ,ag) ;
}
return 0 ;
}
#include <math.h>
int main ()
{
double w,r ,ar,ag ;
int n , l ,i ;
scanf ("%d",&n) ;
for (i=1 ; i<=n ; i++)
{
scanf ("%d",&l) ;
w = (6.00*l) /10.00 ;
r = (2.00*l) /10.00 ;
ar = acos(-1) * pow (r,2) ;
ag = l*w - ar ;
printf ("%.2lf %.2lf\n",ar ,ag) ;
}
return 0 ;
}