#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main(int argc, char *argv[]) {
  int i, t, r, length, width, right, left;
  fflush(stdin);
  scanf("%d", &t);
  for (i = 1; i <= t; i++) {
    scanf("%d", &r);
    length = r * 5;
    width = length * 60 / 100;
    right = length * 55 / 100;
    left = length * 45 / 100;
    printf("Case%d¡G\n", i);
    printf("%d %d\n", width / 2, -left);
    printf("%d %d\n", right, width / 2);
    printf("%d %d\n", right, -width / 2);
    printf("%d %d\n", -left, -width / 2);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xea5(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     125a <main+0x12a>
lea    0xe82(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
imul   $0x5,-0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
imul   $0x3c,-0x20(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
imul   $0x37,-0x20(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
imul   $0x2d,-0x20(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
xor    %edx,%edx
sub    -0x2c(%rbp),%edx
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
xor    %eax,%eax
sub    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %esi,%esi
sub    -0x2c(%rbp),%esi
xor    %eax,%eax
sub    -0x24(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116b <main+0x3b>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
lea    0xeb0(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
cmpl   $0x0,(%rsp)
jle    124c <main+0x11c>
lea    0xea5(%rip),%r13
xor    %r12d,%r12d
nopl   0x0(%rax)
add    $0x1,%r12d
lea    0xe85(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
imul   $0x12c,%eax,%ebp
imul   $0x113,%eax,%ecx
movslq %ecx,%rcx
imul   $0x51eb851f,%rcx,%rbx
mov    %rbx,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rbx
add    %ecx,%ebx
imul   $0xe1,%eax,%eax
cltq
imul   $0xffffffffae147ae1,%rax,%r14
mov    %r14,%rax
shr    $0x3f,%rax
sar    $0x25,%r14
add    %eax,%r14d
lea    0xe33(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movslq %ebp,%rbp
imul   $0x51eb851f,%rbp,%r15
mov    %r15,%rax
shr    $0x3f,%rax
sar    $0x26,%r15
add    %eax,%r15d
mov    %r13,%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %ebx,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1030 <printf@plt>
imul   $0xffffffffae147ae1,%rbp,%rbp
mov    %rbp,%rax
shr    $0x3f,%rax
sar    $0x26,%rbp
add    %eax,%ebp
mov    %r13,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1030 <printf@plt>
cmp    (%rsp),%r12d
jl     1170 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"Case%d\C2\A1G\0A\00"
@.str.2 = [7 x i8] c"%d %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* @stdin
%14 = call i32 @fflush(i32 %13)
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
store i32 1, i32* %6
br label %16
16: ; preds = %55, %2
%17 = load i32, i32* %6
%18 = load i32, i32* %7
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %58
20: ; preds = %16
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
%22 = load i32, i32* %8
%23 = mul nsw i32 %22, 5
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = mul nsw i32 %24, 60
%26 = sdiv i32 %25, 100
store i32 %26, i32* %10
%27 = load i32, i32* %9
%28 = mul nsw i32 %27, 55
%29 = sdiv i32 %28, 100
store i32 %29, i32* %11
%30 = load i32, i32* %9
%31 = mul nsw i32 %30, 45
%32 = sdiv i32 %31, 100
store i32 %32, i32* %12
%33 = load i32, i32* %6
%34 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %10
%36 = sdiv i32 %35, 2
%37 = load i32, i32* %12
%38 = sub nsw i32 0, %37
%39 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %36, i32 %38)
%40 = load i32, i32* %11
%41 = load i32, i32* %10
%42 = sdiv i32 %41, 2
%43 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %40, i32 %42)
%44 = load i32, i32* %11
%45 = load i32, i32* %10
%46 = sub nsw i32 0, %45
%47 = sdiv i32 %46, 2
%48 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %44, i32 %47)
%49 = load i32, i32* %12
%50 = sub nsw i32 0, %49
%51 = load i32, i32* %10
%52 = sub nsw i32 0, %51
%53 = sdiv i32 %52, 2
%54 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %50, i32 %53)
br label %55
55: ; preds = %20
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %16
58: ; preds = %16
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [3 x i8] c"%d\00"
@.str.1 = [11 x i8] c"Case%d\C2\A1G\0A\00"
@.str.2 = [7 x i8] c"%d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = load i32, i32* @stdin
%8 = tail call i32 @fflush(i32 %7)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 1
br i1 %11, label %31, label %12
12: ; preds = %2, %12
%13 = phi i32 [ %28, %12 ], [ 1, %2 ]
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%15 = load i32, i32* %4
%16 = mul i32 %15, 300
%17 = mul i32 %15, 275
%18 = sdiv i32 %17, 100
%19 = mul i32 %15, 225
%20 = sdiv i32 %19, -100
%21 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%22 = sdiv i32 %16, 200
%23 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %20)
%24 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %18, i32 %22)
%25 = sdiv i32 %16, -200
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %18, i32 %25)
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %20, i32 %25)
%28 = add nuw nsw i32 %13, 1
%29 = load i32, i32* %3
%30 = icmp slt i32 %13, %29
br i1 %30, label %12, label %31
31: ; preds = %12, %2
ret i32 0
}