#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int acos(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, double, double);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int i, j, l, t;
  double r, a, c;
  scanf("%d", &t);
  for (i = 1; i <= t; i++) {
    scanf("%d", &l);
    r = (double)(l / 5.0);
    c = ((2) * (acos(0))) * r * r;
    a = (double)(r * 3.0 * l);
    printf("%.2lf %.2lf\n", c, a - c);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11e9 <main+0xb9>
lea    0xea7(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xe89(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
xor    %edi,%edi
call   1040 <acos@plt>
shl    $0x1,%eax
cvtsi2sd %eax,%xmm0
mulsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe53(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1156 <main+0x26>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xecf(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    11de <main+0xae>
xor    %ebp,%ebp
lea    0xeb1(%rip),%r14
lea    0xc(%rsp),%r15
lea    0xea8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
xorps  %xmm0,%xmm0
cvtsi2sdl 0xc(%rsp),%xmm0
divsd  0xe74(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
xor    %edi,%edi
call   1040 <acos@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mulsd  0xe50(%rip),%xmm1
movapd %xmm1,%xmm2
xorps  %xmm1,%xmm1
cvtsi2sdl 0xc(%rsp),%xmm1
mulsd  %xmm2,%xmm1
subsd  %xmm0,%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
add    $0x1,%ebp
cmp    0x8(%rsp),%ebp
jl     1170 <main+0x40>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"%.2lf %.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %1
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %5)
store i32 1, i32* %2
br label %10
10: ; preds = %36, %0
%11 = load i32, i32* %2
%12 = load i32, i32* %5
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %39
14: ; preds = %10
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%16 = load i32, i32* %4
%17 = sitofp i32 %16 to double
%18 = fdiv double %17, 5.000000e+00
store double %18, double* %6
%19 = call i32 @acos(i32 0)
%20 = mul nsw i32 2, %19
%21 = sitofp i32 %20 to double
%22 = load double, double* %6
%23 = fmul double %21, %22
%24 = load double, double* %6
%25 = fmul double %23, %24
store double %25, double* %8
%26 = load double, double* %6
%27 = fmul double %26, 3.000000e+00
%28 = load i32, i32* %4
%29 = sitofp i32 %28 to double
%30 = fmul double %27, %29
store double %30, double* %7
%31 = load double, double* %8
%32 = load double, double* %7
%33 = load double, double* %8
%34 = fsub double %32, %33
%35 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %31, double %34)
br label %36
36: ; preds = %14
%37 = load i32, i32* %2
%38 = add nsw i32 %37, 1
store i32 %38, i32* %2
br label %10
39: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [13 x i8] c"%.2lf %.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 1
br i1 %7, label %28, label %8
8: ; preds = %0, %8
%9 = phi i32 [ %25, %8 ], [ 1, %0 ]
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = sitofp i32 %11 to double
%13 = fdiv double %12, 5.000000e+00
%14 = call i32 @acos(i32 0)
%15 = shl nsw i32 %14, 1
%16 = sitofp i32 %15 to double
%17 = fmul double %13, %16
%18 = fmul double %13, %17
%19 = fmul double %13, 3.000000e+00
%20 = load i32, i32* %1
%21 = sitofp i32 %20 to double
%22 = fmul double %19, %21
%23 = fsub double %22, %18
%24 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %18, double %23)
%25 = add nuw nsw i32 %9, 1
%26 = load i32, i32* %2
%27 = icmp slt i32 %9, %26
br i1 %27, label %8, label %28
28: ; preds = %8, %0
ret i32 0
}