#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 /*<<< orphan*/ printf(char *, double, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  double len, n_len, w, left, right, r;
  int i, n;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%lf", &r);
    w = 5 * r;
    len = 3 * r / 2;
    n_len = -len;
    right = 5.5 * w / 10;
    left = -(w - right);
    printf("Case %d:\n", i);
    printf("%.0lf %.0lf\n%.0lf %.0lf\n%.0lf %.0lf\n%.0lf %.0lf\n", left, len,
           right, len, right, n_len, left, n_len);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jg     1252 <main+0x132>
lea    0xed0(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsd  0xeb2(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe98(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  0xe83(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe49(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xe34(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x28(%rbp)
cvtsi2sdl -0x3c(%rbp),%xmm0
lea    0xe28(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x18(%rbp),%xmm5
movsd  -0x28(%rbp),%xmm6
movsd  -0x18(%rbp),%xmm7
lea    0xdfc(%rip),%rdi
mov    $0x8,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1148 <main+0x28>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
lea    0xf0d(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
jle    122c <main+0x10c>
lea    0xef2(%rip),%r14
lea    0x18(%rsp),%r15
lea    0xeea(%rip),%r12
lea    0xeed(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebp
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movsd  0x18(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  0xe6e(%rip),%xmm1
mulsd  0xe6e(%rip),%xmm0
mulsd  0xe6e(%rip),%xmm0
movapd %xmm0,0x30(%rsp)
movapd %xmm0,%xmm2
movapd 0xe7c(%rip),%xmm0
xorpd  %xmm0,%xmm2
movapd %xmm2,0x40(%rsp)
movapd %xmm1,%xmm2
mulsd  0xe4e(%rip),%xmm2
divsd  0xe4e(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
subsd  %xmm2,%xmm1
xorpd  %xmm0,%xmm1
movapd %xmm1,0x20(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    %rbx,%rdi
movaps 0x20(%rsp),%xmm0
movaps 0x30(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movaps %xmm1,%xmm3
movaps %xmm2,%xmm4
movaps 0x40(%rsp),%xmm5
movaps %xmm0,%xmm6
movaps %xmm5,%xmm7
mov    $0x8,%al
call   1030 <printf@plt>
cmp    0xc(%rsp),%ebp
jl     1170 <main+0x50>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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