#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
char *readline();
int /*<<< orphan*/ stdout;
int strtol(char *, char **, int);
int main() {
  char *n_endptr;
  char *n_str = readline();
  int n = strtol(n_str, &n_endptr, 10);
  if (n_endptr == n_str || *n_endptr != '\0') {
    exit(EXIT_FAILURE);
  }
  switch (n) {
  case 1: {
    fprintf(stdout, "one\n");
    break;
  }
  case 2: {
    fprintf(stdout, "two\n");
    break;
  }
  case 3: {
    fprintf(stdout, "three\n");
    break;
  }
  case 4: {
    fprintf(stdout, "four\n");
    break;
  }
  case 5: {
    fprintf(stdout, "five\n");
    break;
  }
  case 6: {
    fprintf(stdout, "six\n");
    break;
  }
  case 7: {
    fprintf(stdout, "seven\n");
    break;
  }
  case 8: {
    fprintf(stdout, "eight\n");
    break;
  }
  case 9: {
    fprintf(stdout, "nine\n");
    break;
  }
  default: {
    fprintf(stdout, "Greater than 9\n");
    break;
  }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <readline@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x10(%rbp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
je     118d <main+0x4d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     119b <main+0x5b>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x8,%eax
ja     12ae <main+0x16e>
mov    -0x28(%rbp),%rax
lea    0xe45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe50(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xe3b(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
lea    0xe13(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2da5(%rip),%rax
mov    (%rax),%edi
lea    0xdff(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
lea    0xdeb(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
lea    0xdd6(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
lea    0xdc3(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
lea    0xdb0(%rip),%rsi
call   1040 <fprintf@plt>
jmp    12c3 <main+0x183>
mov    0x2d23(%rip),%rax
mov    (%rax),%edi
lea    0xd9c(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <readline@plt>
mov    %rax,%rbx
lea    0x8(%rsp),%rsi
mov    %rax,%rdi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    0x8(%rsp),%rcx
cmp    %rbx,%rcx
je     11a7 <main+0x67>
cmpb   $0x0,(%rcx)
jne    11a7 <main+0x67>
add    $0xffffffff,%eax
cmp    $0x8,%eax
ja     118a <main+0x4a>
cltq
lea    0xec7(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
jmp    1191 <main+0x51>
lea    0xea5(%rip),%rsi
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@stdout = global i32 0
@.str = [5 x i8] c"one\0A\00"
@.str.1 = [5 x i8] c"two\0A\00"
@.str.2 = [7 x i8] c"three\0A\00"
@.str.3 = [6 x i8] c"four\0A\00"
@.str.4 = [6 x i8] c"five\0A\00"
@.str.5 = [5 x i8] c"six\0A\00"
@.str.6 = [7 x i8] c"seven\0A\00"
@.str.7 = [7 x i8] c"eight\0A\00"
@.str.8 = [6 x i8] c"nine\0A\00"
@.str.9 = [16 x i8] c"Greater than 9\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i32 0, i32* %1
%5 = call i8* (...) @readline()
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i32 @strtol(i8* %6, i8** %2, i32 10)
store i32 %7, i32* %4
%8 = load i8*, i8** %2
%9 = load i8*, i8** %3
%10 = icmp eq i8* %8, %9
br i1 %10, label %16, label %11
11: ; preds = %0
%12 = load i8*, i8** %2
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11, %0
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
19: ; preds = %11
%20 = load i32, i32* %4
switch i32 %20, label %48 [
i32 1, label %21
i32 2, label %24
i32 3, label %27
i32 4, label %30
i32 5, label %33
i32 6, label %36
i32 7, label %39
i32 8, label %42
i32 9, label %45
]
21: ; preds = %19
%22 = load i32, i32* @stdout
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %51
24: ; preds = %19
%25 = load i32, i32* @stdout
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %51
27: ; preds = %19
%28 = load i32, i32* @stdout
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %51
30: ; preds = %19
%31 = load i32, i32* @stdout
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %51
33: ; preds = %19
%34 = load i32, i32* @stdout
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %51
36: ; preds = %19
%37 = load i32, i32* @stdout
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %51
39: ; preds = %19
%40 = load i32, i32* @stdout
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %51
42: ; preds = %19
%43 = load i32, i32* @stdout
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %51
45: ; preds = %19
%46 = load i32, i32* @stdout
%47 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %51
48: ; preds = %19
%49 = load i32, i32* @stdout
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
br label %51
51: ; preds = %48, %45, %42, %39, %36, %33, %30, %27, %24, %21
ret i32 0
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@stdout = global i32 0
@.str = [5 x i8] c"one\0A\00"
@.str.1 = [5 x i8] c"two\0A\00"
@.str.2 = [7 x i8] c"three\0A\00"
@.str.3 = [6 x i8] c"four\0A\00"
@.str.4 = [6 x i8] c"five\0A\00"
@.str.5 = [5 x i8] c"six\0A\00"
@.str.6 = [7 x i8] c"seven\0A\00"
@.str.7 = [7 x i8] c"eight\0A\00"
@.str.8 = [6 x i8] c"nine\0A\00"
@.str.9 = [16 x i8] c"Greater than 9\0A\00"
@reltable.main = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.1 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.2 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.3 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.4 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.5 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.6 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.8 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
%3 = tail call i8* (...) @readline()
%4 = call i32 @strtol(i8* %3, i8** %1, i32 10)
%5 = load i8*, i8** %1
%6 = icmp eq i8* %5, %3
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = load i8, i8* %5
%9 = icmp eq i8 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7, %0
%11 = load i32, i32* @EXIT_FAILURE
%12 = tail call i32 @exit(i32 %11)
unreachable
13: ; preds = %7
%14 = add i32 %4, -1
%15 = icmp ult i32 %14, 9
br i1 %15, label %16, label %20
16: ; preds = %13
%17 = sext i32 %14 to i64
%18 = shl i64 %17, 2
%19 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main to i8*), i64 %18)
br label %20
20: ; preds = %13, %16
%21 = phi i8* [ %19, %16 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), %13 ]
%22 = load i32, i32* @stdout
%23 = tail call i32 @fprintf(i32 %22, i8* %21)
ret i32 0
}