#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 */
#define EOF 128
int getchar();
int /*<<< orphan*/ puts(char *);
int main(void) {
  puts("````s``s`ks``s``s`ks``s`k`s``s``si`kk`ki```ss`si`kkkk```sii``s`k``s`k`"
       "s``si`k``s``si`k`kk`k``````sii```sii``s``s`kski``s`k`s``si`k`kik`kk`"
       "kik``sii");
  for (;;) {
    switch (getchar()) {
    case '+':
      puts("```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``"
           "s``s`k``s``s`ks``s`k`s``si`kk``s`k`s``s`ks``s`k`sik``s`kkk``s``s`"
           "ks``s`kk``s`ks``s`k`sik`kk``s`k`s``si`k`ki```ss`si`kk``s``si`k`ki`"
           "k`ki``s`kk``si`k`ki");
      break;
    case '-':
      puts("```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``"
           "si`k``s``s`ks``s``s`ks```ss`si`kk``s`k`s``s`ks``s`k`si``s`kk``si`k`"
           "ki``s`kk``s`kk``s`k`s``si`k`kik``s``s`ks``s`kk``s`ks``s`k`si``s`kk`"
           "`si`k`ki`k``s`kk``s`k`s``si`k`kik``s`kk``si`k`ki");
      break;
    case '<':
      puts("```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`"
           "k`s`k`s`ks``s`k`s`k`s`kk``s``s`ks``s`k`s`ks``s``s`ks``s`k`s`ks``s`"
           "k`s`kk``si`kk`k`k``si`kk`k`k``si`k`ki`k`k```ss`s``s`ks``s`kk``s`ks`"
           "`s`k`sik`kk``s`kk``si`k`ki");
      break;
    case '>':
      puts("```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`"
           "s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`kk``s`k`s`"
           "ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`kk`k`k``s`k`s`kk``s`"
           "`s`ks``s`kk``s`ks``s`k`sik`kk`k`k`k`k``si`k`ki``s`kk``si`k`ki");
      break;
    case '[':
      puts("```s``s`ks``s`k`si``s`kk``s`k`s`k``sii``s``s`ks``s`k`s`ks``s`k`s`k`"
           "s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`k`s``s``si`kk`"
           "kk``s`k`s`kk``s``si`k`ki`kk``s`kk``s`k`s`kk``s``s`ks```ss`si`kk`k``"
           "sii`k`k`ki``s`kk``s``si`k`ki`k`ki");
      break;
    case ']':
      puts("```s`k`s``si`kik");
      break;
    case ',':
      puts("```s``s`ks``s`k`si``s`kk``s`k`s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`"
           "ks``s`k`s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`"
           "kk``s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s``s`ks``"
           "s`k`s`ks``s`k`s`kk``si`kk`k`k``s``s`ks``s`k`si``s`kk``s``s``si`kk`"
           "k``s`k`s``si`k`kik`k`kk``s`kk``s``s``si`kk`k``si`k`ki`k``````sii```"
           "sii``s``s`kski``s`k`s``si`k`kik`kk`ki`k`kk`k`k`kk`k`k`k`k``si`k`ki`"
           "`s`kk``si`k`ki");
      break;
    case '.':
      puts("```s``s`ks``s`k`si``s`kk``s`k`s`k`s``s`ks``s`kk``s`ks``s`kk``s`ks``"
           "`ss`s``s`ks``s`kk``s`ks``s`k`si``s`kk``s`k```sii``s`k`s``s``si`kk`"
           "k`ki``s`k`s`k`s``s`ksk``s``s`ks``s`kk``sii`k``si`k`ki``si`kk`kk``"
           "si`kk``s`kk``si`k`ki");
      break;
    case EOF:
      puts("`k`k`k`k`k`k`k```sii```sii``s``s`kski");
      return 0;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0x1022(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
add    $0xffffffd5,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x55,%eax
ja     1204 <main+0xe4>
mov    -0x10(%rbp),%rax
lea    0xea1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x107c(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x1144(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x122c(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x12fe(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x13f2(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x14ca(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x14ca(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x1654(%rip),%rdi
call   1030 <puts@plt>
jmp    1204 <main+0xe4>
lea    0x171e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret
jmp    113b <main+0x1b>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x1026(%rip),%rdi
lea    0xec7(%rip),%rbx
lea    0x16fa(%rip),%r13
lea    0x1276(%rip),%rbp
lea    0x1352(%rip),%r14
lea    0x1450(%rip),%r15
lea    0x1532(%rip),%r12
nopl   0x0(%rax)
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
add    $0xffffffd5,%eax
cmp    $0x55,%eax
ja     1165 <main+0x45>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
lea    0x1067(%rip),%rdi
jmp    1160 <main+0x40>
lea    0x1512(%rip),%rdi
jmp    1160 <main+0x40>
lea    0x112e(%rip),%rdi
jmp    1160 <main+0x40>
mov    %r13,%rdi
jmp    1160 <main+0x40>
mov    %rbp,%rdi
jmp    1160 <main+0x40>
mov    %r14,%rdi
jmp    1160 <main+0x40>
mov    %r15,%rdi
jmp    1160 <main+0x40>
mov    %r12,%rdi
jmp    1160 <main+0x40>
lea    0x175d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [147 x i8] c"````s``s`ks``s``s`ks``s`k`s``s``si`kk`ki```ss`si`kkkk```sii``s`k``s`k`s``si`k``s``si`k`kk`k``````sii```sii``s``s`kski``s`k`s``si`k`kik`kk`kik``sii\00"
@.str.1 = [217 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``s``s`k``s``s`ks``s`k`s``si`kk``s`k`s``s`ks``s`k`sik``s`kkk``s``s`ks``s`kk``s`ks``s`k`sik`kk``s`k`s``si`k`ki```ss`si`kk``s``si`k`ki`k`ki``s`kk``si`k`ki\00"
@.str.2 = [249 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`k``s``s`ks``s``s`ks```ss`si`kk``s`k`s``s`ks``s`k`si``s`kk``si`k`ki``s`kk``s`kk``s`k`s``si`k`kik``s``s`ks``s`kk``s`ks``s`k`si``s`kk``si`k`ki`k``s`kk``s`k`s``si`k`kik``s`kk``si`k`ki\00"
@.str.3 = [227 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`kk``s``s`ks``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`kk`k`k``si`k`ki`k`k```ss`s``s`ks``s`kk``s`ks``s`k`sik`kk``s`kk``si`k`ki\00"
@.str.4 = [261 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`kk``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`kk`k`k``s`k`s`kk``s``s`ks``s`kk``s`ks``s`k`sik`kk`k`k`k`k``si`k`ki``s`kk``si`k`ki\00"
@.str.5 = [233 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`k``sii``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`k`s``s``si`kk`kk``s`k`s`kk``s``si`k`ki`kk``s`kk``s`k`s`kk``s``s`ks```ss`si`kk`k``sii`k`k`ki``s`kk``s``si`k`ki`k`ki\00"
@.str.6 = [17 x i8] c"```s`k`s``si`kik\00"
@.str.7 = [411 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`kk``s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``s``s`ks``s`k`si``s`kk``s``s``si`kk`k``s`k`s``si`k`kik`k`kk``s`kk``s``s``si`kk`k``si`k`ki`k``````sii```sii``s``s`kski``s`k`s``si`k`kik`kk`ki`k`kk`k`k`kk`k`k`k`k``si`k`ki``s`kk``si`k`ki\00"
@.str.8 = [219 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`k`s``s`ks``s`kk``s`ks``s`kk``s`ks```ss`s``s`ks``s`kk``s`ks``s`k`si``s`kk``s`k```sii``s`k`s``s``si`kk`k`ki``s`k`s`k`s``s`ksk``s``s`ks``s`kk``sii`k``si`k`ki``si`kk`kk``si`kk``s`kk``si`k`ki\00"
@.str.9 = [38 x i8] c"`k`k`k`k`k`k`k```sii```sii``s``s`kski\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %23, %0
%4 = call i32 (...) @getchar()
switch i32 %4, label %23 [
i32 43, label %5
i32 45, label %7
i32 60, label %9
i32 62, label %11
i32 91, label %13
i32 93, label %15
i32 44, label %17
i32 46, label %19
i32 128, label %21
]
5: ; preds = %3
%6 = call i32 @puts(i8* getelementptr inbounds ([217 x i8], [217 x i8]* @.str.1, i64 0, i64 0))
br label %23
7: ; preds = %3
%8 = call i32 @puts(i8* getelementptr inbounds ([249 x i8], [249 x i8]* @.str.2, i64 0, i64 0))
br label %23
9: ; preds = %3
%10 = call i32 @puts(i8* getelementptr inbounds ([227 x i8], [227 x i8]* @.str.3, i64 0, i64 0))
br label %23
11: ; preds = %3
%12 = call i32 @puts(i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.4, i64 0, i64 0))
br label %23
13: ; preds = %3
%14 = call i32 @puts(i8* getelementptr inbounds ([233 x i8], [233 x i8]* @.str.5, i64 0, i64 0))
br label %23
15: ; preds = %3
%16 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
br label %23
17: ; preds = %3
%18 = call i32 @puts(i8* getelementptr inbounds ([411 x i8], [411 x i8]* @.str.7, i64 0, i64 0))
br label %23
19: ; preds = %3
%20 = call i32 @puts(i8* getelementptr inbounds ([219 x i8], [219 x i8]* @.str.8, i64 0, i64 0))
br label %23
21: ; preds = %3
%22 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
23: ; preds = %3, %19, %17, %15, %13, %11, %9, %7, %5
br label %3
}

LLVM IR (-O2):
@.str = [147 x i8] c"````s``s`ks``s``s`ks``s`k`s``s``si`kk`ki```ss`si`kkkk```sii``s`k``s`k`s``si`k``s``si`k`kk`k``````sii```sii``s``s`kski``s`k`s``si`k`kik`kk`kik``sii\00"
@.str.1 = [217 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``s``s`k``s``s`ks``s`k`s``si`kk``s`k`s``s`ks``s`k`sik``s`kkk``s``s`ks``s`kk``s`ks``s`k`sik`kk``s`k`s``si`k`ki```ss`si`kk``s``si`k`ki`k`ki``s`kk``si`k`ki\00"
@.str.2 = [249 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`k``s``s`ks``s``s`ks```ss`si`kk``s`k`s``s`ks``s`k`si``s`kk``si`k`ki``s`kk``s`kk``s`k`s``si`k`kik``s``s`ks``s`kk``s`ks``s`k`si``s`kk``si`k`ki`k``s`kk``s`k`s``si`k`kik``s`kk``si`k`ki\00"
@.str.3 = [227 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`kk``s``s`ks``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`kk`k`k``si`k`ki`k`k```ss`s``s`ks``s`kk``s`ks``s`k`sik`kk``s`kk``si`k`ki\00"
@.str.4 = [261 x i8] c"```s``s`ks``s`k`si``s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`kk``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``si`kk`k`k``s`k`s`kk``s``s`ks``s`kk``s`ks``s`k`sik`kk`k`k`k`k``si`k`ki``s`kk``si`k`ki\00"
@.str.5 = [233 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`k``sii``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s`k`s`k`s``s``si`kk`kk``s`k`s`kk``s``si`k`ki`kk``s`kk``s`k`s`kk``s``s`ks```ss`si`kk`k``sii`k`k`ki``s`kk``s``si`k`ki`k`ki\00"
@.str.6 = [17 x i8] c"```s`k`s``si`kik\00"
@.str.7 = [411 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`kk``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`k`s`ks``s`k`s`k`s`kk``s`k`s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``s`k`s`ks``s``s`ks``s`k`s`ks``s`k`s`kk``si`kk`k`k``s``s`ks``s`k`si``s`kk``s``s``si`kk`k``s`k`s``si`k`kik`k`kk``s`kk``s``s``si`kk`k``si`k`ki`k``````sii```sii``s``s`kski``s`k`s``si`k`kik`kk`ki`k`kk`k`k`kk`k`k`k`k``si`k`ki``s`kk``si`k`ki\00"
@.str.8 = [219 x i8] c"```s``s`ks``s`k`si``s`kk``s`k`s`k`s``s`ks``s`kk``s`ks``s`kk``s`ks```ss`s``s`ks``s`kk``s`ks``s`k`si``s`kk``s`k```sii``s`k`s``s``si`kk`k`ki``s`k`s`k`s``s`ksk``s``s`ks``s`kk``sii`k``si`k`ki``si`kk`kk``si`kk``s`kk``si`k`ki\00"
@.str.9 = [38 x i8] c"`k`k`k`k`k`k`k```sii```sii``s``s`kski\00"
define i32 @main() {
br label %1
1: ; preds = %7, %0
%2 = phi i8* [ getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0), %0 ], [ %8, %7 ]
%3 = tail call i32 @puts(i8* dereferenceable(1) %2)
br label %4
4: ; preds = %1, %4
%5 = tail call i32 (...) @getchar()
switch i32 %5, label %4 [
i32 43, label %7
i32 45, label %6
i32 60, label %9
i32 62, label %10
i32 91, label %11
i32 93, label %12
i32 44, label %13
i32 46, label %14
i32 128, label %15
]
6: ; preds = %4
br label %7
7: ; preds = %4, %6, %9, %10, %11, %12, %13, %14
%8 = phi i8* [ getelementptr inbounds ([219 x i8], [219 x i8]* @.str.8, i64 0, i64 0), %14 ], [ getelementptr inbounds ([411 x i8], [411 x i8]* @.str.7, i64 0, i64 0), %13 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %12 ], [ getelementptr inbounds ([233 x i8], [233 x i8]* @.str.5, i64 0, i64 0), %11 ], [ getelementptr inbounds ([261 x i8], [261 x i8]* @.str.4, i64 0, i64 0), %10 ], [ getelementptr inbounds ([227 x i8], [227 x i8]* @.str.3, i64 0, i64 0), %9 ], [ getelementptr inbounds ([249 x i8], [249 x i8]* @.str.2, i64 0, i64 0), %6 ], [ getelementptr inbounds ([217 x i8], [217 x i8]* @.str.1, i64 0, i64 0), %4 ]
br label %1
9: ; preds = %4
br label %7
10: ; preds = %4
br label %7
11: ; preds = %4
br label %7
12: ; preds = %4
br label %7
13: ; preds = %4
br label %7
14: ; preds = %4
br label %7
15: ; preds = %4
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}