#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 *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int num;
  scanf("%d", &num);
  switch (num / 10) {
  case 10:
  case 9:
    printf("youxiu\n");
    break;
  case 8:
    printf("lianghao\n");
    break;
  case 7:
    printf("zhongdneg\n");
    break;
  case 6:
    printf("jige\n");
  case 5:
  case 4:
  case 3:
  case 2:
  case 1:
  case 0:
    printf("bujige\n");
    break;
  default:
    printf("error\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef6(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movslq -0x8(%rbp),%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0xa,%eax
ja     11ca <main+0xaa>
mov    -0x10(%rbp),%rax
lea    0xe8f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
jmp    11d6 <main+0xb6>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf04(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movslq 0x4(%rsp),%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
cmp    $0xa,%eax
ja     1177 <main+0x57>
lea    0xef2(%rip),%rdi
lea    0xea2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xed2(%rip),%rdi
jmp    116e <main+0x4e>
lea    0xeaa(%rip),%rdi
call   1030 <puts@plt>
jmp    1167 <main+0x47>
lea    0xea1(%rip),%rdi
jmp    116e <main+0x4e>
lea    0xea2(%rip),%rdi
jmp    116e <main+0x4e>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [8 x i8] c"youxiu\0A\00"
@.str.2 = [10 x i8] c"lianghao\0A\00"
@.str.3 = [11 x i8] c"zhongdneg\0A\00"
@.str.4 = [6 x i8] c"jige\0A\00"
@.str.5 = [8 x i8] c"bujige\0A\00"
@.str.6 = [7 x i8] c"error\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = sdiv i32 %4, 10
switch i32 %5, label %16 [
i32 10, label %6
i32 9, label %6
i32 8, label %8
i32 7, label %10
i32 6, label %12
i32 5, label %14
i32 4, label %14
i32 3, label %14
i32 2, label %14
i32 1, label %14
i32 0, label %14
]
6: ; preds = %0, %0
%7 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %18
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %18
10: ; preds = %0
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %18
12: ; preds = %0
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %14
14: ; preds = %0, %0, %0, %0, %0, %0, %12
%15 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %18
16: ; preds = %0
%17 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %18
18: ; preds = %16, %14, %10, %8, %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [7 x i8] c"bujige\00"
@str.7 = [5 x i8] c"jige\00"
@str.8 = [10 x i8] c"zhongdneg\00"
@str.9 = [9 x i8] c"lianghao\00"
@str.10 = [7 x i8] c"youxiu\00"
@str.11 = [6 x i8] c"error\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = sdiv i32 %4, 10
switch i32 %5, label %11 [
i32 10, label %12
i32 9, label %12
i32 8, label %6
i32 7, label %7
i32 6, label %8
i32 5, label %10
i32 4, label %10
i32 3, label %10
i32 2, label %10
i32 1, label %10
i32 0, label %10
]
6: ; preds = %0
br label %12
7: ; preds = %0
br label %12
8: ; preds = %0
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.7, i64 0, i64 0))
br label %10
10: ; preds = %0, %0, %0, %0, %0, %0, %8
br label %12
11: ; preds = %0
br label %12
12: ; preds = %0, %0, %11, %10, %7, %6
%13 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.11, i64 0, i64 0), %11 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0), %10 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @str.8, i64 0, i64 0), %7 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @str.9, i64 0, i64 0), %6 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.10, i64 0, i64 0), %0 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.10, i64 0, i64 0), %0 ]
%14 = call i32 @puts(i8* dereferenceable(1) %13)
ret i32 0
}