int main() {
  int box[15] = {0};
  char help[200];
  char bb[100] = {"Bluebridge"};
  char ab[100] = {"Alyson Books"};
  char fp[100] = {"FUNimation Productions, Ltd."};
  char pb[100] = {"Pyramid Books"};
  scanf("%[^\n]", help);
  if (length_t(box, help) == 13 && begin_t(box) == 1 && check_sum(box) == 1) {
    printf("1\n");
    switch (name_t(help, bb, ab, fp, pb)) {
    case 1:
      printf("%s\n", bb);
      break;
    case 2:
      printf("%s\n", ab);
      break;
    case 3:
      printf("%s\n", fp);
      break;
    case 4:
      printf("%s\n", pb);
      break;
    }
  } else {
    printf("0\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x3c,%edx
call   1040 <memset@plt>
lea    -0x180(%rbp),%rdi
lea    0xe60(%rip),%rsi
mov    $0x64,%edx
call   1060 <memcpy@plt>
lea    -0x1f0(%rbp),%rdi
lea    0xeb8(%rip),%rsi
mov    $0x64,%edx
call   1060 <memcpy@plt>
lea    -0x260(%rbp),%rdi
lea    0xf10(%rip),%rsi
mov    $0x64,%edx
call   1060 <memcpy@plt>
lea    -0x2d0(%rbp),%rdi
lea    0xf68(%rip),%rsi
mov    $0x64,%edx
call   1060 <memcpy@plt>
lea    -0x110(%rbp),%rsi
lea    0xfb4(%rip),%rdi
mov    $0x0,%al
call   1090 <scanf@plt>
lea    -0x40(%rbp),%rdi
lea    -0x110(%rbp),%rsi
mov    $0x0,%al
call   10a0 <length_t@plt>
cmp    $0xd,%eax
jne    1330 <main+0x1b0>
lea    -0x40(%rbp),%rdi
mov    $0x0,%al
call   1080 <begin_t@plt>
cmp    $0x1,%eax
jne    1330 <main+0x1b0>
lea    -0x40(%rbp),%rdi
mov    $0x0,%al
call   1050 <check_sum@plt>
cmp    $0x1,%eax
jne    1330 <main+0x1b0>
lea    0xf69(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x2d9(%rbp)
call   1030 <printf@plt>
mov    -0x2d9(%rbp),%al
lea    -0x110(%rbp),%rdi
lea    -0x180(%rbp),%rsi
lea    -0x1f0(%rbp),%rdx
lea    -0x260(%rbp),%rcx
lea    -0x2d0(%rbp),%r8
call   1070 <name_t@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x2d8(%rbp)
sub    $0x3,%eax
ja     132b <main+0x1ab>
mov    -0x2d8(%rbp),%rax
lea    0xd41(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x180(%rbp),%rsi
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132b <main+0x1ab>
lea    -0x1f0(%rbp),%rsi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132b <main+0x1ab>
lea    -0x260(%rbp),%rsi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    132b <main+0x1ab>
lea    -0x2d0(%rbp),%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    133e <main+0x1be>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x2e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x2d0,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x2c(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x1e0(%rsp)
movaps 0xebc(%rip),%xmm0
movaps %xmm0,0x1d0(%rsp)
movaps 0xe9d(%rip),%xmm0
movaps %xmm0,0x1c0(%rsp)
movaps 0xe7e(%rip),%xmm0
movaps %xmm0,0x1b0(%rsp)
movaps 0xe5f(%rip),%xmm0
movaps %xmm0,0x1a0(%rsp)
movaps 0xe40(%rip),%xmm0
movaps %xmm0,0x190(%rsp)
movl   $0x0,0x1f0(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x170(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xea8(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe89(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xe6a(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe4b(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movl   $0x0,0x180(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe94(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xe75(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xe56(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movl   $0x0,0x110(%rsp)
movaps 0xefc(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xebe(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xea2(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe86(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe6a(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movl   $0x0,0xa0(%rsp)
lea    0xeb7(%rip),%rdi
lea    0x200(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    %rsp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <length_t@plt>
cmp    $0xd,%eax
jne    13a9 <main+0x249>
mov    %rsp,%rdi
xor    %eax,%eax
call   1060 <begin_t@plt>
cmp    $0x1,%eax
jne    13a9 <main+0x249>
mov    %rsp,%rdi
xor    %eax,%eax
call   1040 <check_sum@plt>
cmp    $0x1,%eax
jne    13a9 <main+0x249>
lea    0xe76(%rip),%rdi
call   1030 <puts@plt>
lea    0x200(%rsp),%rdi
lea    0x190(%rsp),%rsi
lea    0x120(%rsp),%rdx
lea    0xb0(%rsp),%rcx
lea    0x40(%rsp),%r8
xor    %eax,%eax
call   1050 <name_t@plt>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     13b5 <main+0x255>
lea    0xc6a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x190(%rsp),%rdi
jmp    13b0 <main+0x250>
lea    0xe1a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x2d0,%rsp
pop    %rbx
ret
lea    0x120(%rsp),%rdi
jmp    13b0 <main+0x250>
lea    0xb0(%rsp),%rdi
jmp    13b0 <main+0x250>
lea    0x40(%rsp),%rdi
jmp    13b0 <main+0x250>

LLVM IR (-O0):
@__const.main.bb = [100 x i8] c"Bluebridge\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.ab = [100 x i8] c"Alyson Books\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.fp = [100 x i8] c"FUNimation Productions, Ltd.\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.pb = [100 x i8] c"Pyramid Books\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [6 x i8] c"%[^\0A]\00"
@.str.1 = [3 x i8] c"1\0A\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [3 x i8] c"0\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [15 x i32]
%3 = alloca [200 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
store i32 0, i32* %1
%8 = bitcast [15 x i32]* %2 to i8*
%9 = bitcast [100 x i8]* %4 to i8*
%10 = bitcast [100 x i8]* %5 to i8*
%11 = bitcast [100 x i8]* %6 to i8*
%12 = bitcast [100 x i8]* %7 to i8*
%13 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 0
%16 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%17 = call i32 (i32*, i8*, ...) bitcast (i32 (...)* @length_t to i32 (i32*, i8*, ...)*)(i32* %15, i8* %16)
%18 = icmp eq i32 %17, 13
br i1 %18, label %19, label %48
19: ; preds = %0
%20 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 0
%21 = call i32 (i32*, ...) bitcast (i32 (...)* @begin_t to i32 (i32*, ...)*)(i32* %20)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %48
23: ; preds = %19
%24 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 0
%25 = call i32 (i32*, ...) bitcast (i32 (...)* @check_sum to i32 (i32*, ...)*)(i32* %24)
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %48
27: ; preds = %23
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%29 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%34 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @name_t to i32 (i8*, i8*, i8*, i8*, i8*, ...)*)(i8* %29, i8* %30, i8* %31, i8* %32, i8* %33)
switch i32 %34, label %47 [
i32 1, label %35
i32 2, label %38
i32 3, label %41
i32 4, label %44
]
35: ; preds = %27
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %36)
br label %47
38: ; preds = %27
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %39)
br label %47
41: ; preds = %27
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %42)
br label %47
44: ; preds = %27
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %45)
br label %47
47: ; preds = %27, %44, %41, %38, %35
br label %50
48: ; preds = %23, %19, %0
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %50
50: ; preds = %48, %47
ret i32 0
}

LLVM IR (-O2):
@__const.main.bb = [100 x i8] c"Bluebridge\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.ab = [100 x i8] c"Alyson Books\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.fp = [100 x i8] c"FUNimation Productions, Ltd.\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@__const.main.pb = [100 x i8] c"Pyramid Books\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [6 x i8] c"%[^\0A]\00"
@str = [2 x i8] c"0\00"
@str.4 = [2 x i8] c"1\00"
define i32 @main() {
%1 = alloca [15 x i32]
%2 = alloca [200 x i8]
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = bitcast [15 x i32]* %1 to i8*
%8 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %8)
%14 = getelementptr inbounds [15 x i32], [15 x i32]* %1, i64 0, i64 0
%15 = call i32 (i32*, i8*, ...) bitcast (i32 (...)* @length_t to i32 (i32*, i8*, ...)*)(i32* %14, i8* %8)
%16 = icmp eq i32 %15, 13
br i1 %16, label %17, label %34
17: ; preds = %0
%18 = call i32 (i32*, ...) bitcast (i32 (...)* @begin_t to i32 (i32*, ...)*)(i32* %14)
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %34
20: ; preds = %17
%21 = call i32 (i32*, ...) bitcast (i32 (...)* @check_sum to i32 (i32*, ...)*)(i32* %14)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %34
23: ; preds = %20
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%25 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @name_t to i32 (i8*, i8*, i8*, i8*, i8*, ...)*)(i8* %8, i8* %9, i8* %10, i8* %11, i8* %12)
switch i32 %25, label %36 [
i32 1, label %26
i32 2, label %28
i32 3, label %30
i32 4, label %32
]
26: ; preds = %23
%27 = call i32 @puts(i8* %9)
br label %36
28: ; preds = %23
%29 = call i32 @puts(i8* %10)
br label %36
30: ; preds = %23
%31 = call i32 @puts(i8* %11)
br label %36
32: ; preds = %23
%33 = call i32 @puts(i8* %12)
br label %36
34: ; preds = %20, %17, %0
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %36
36: ; preds = %26, %28, %30, %32, %23, %34
ret i32 0
}