// File: /workspace/github_cpp_makefile_star2_O1/tanakh[P]icfpc2015/main.cpp
// Function: to_command(char)
command to_command(char c) {
  c = tolower(c);
  if (cmdmap.empty()) {
    cmdmap['p'] = W;
    cmdmap['\''] = W;
    cmdmap['!'] = W;
    cmdmap['.'] = W;
    cmdmap['0'] = W;
    cmdmap['3'] = W;

    cmdmap['b'] = E;
    cmdmap['c'] = E;
    cmdmap['e'] = E;
    cmdmap['f'] = E;
    cmdmap['y'] = E;
    cmdmap['2'] = E;

    cmdmap['a'] = SW;
    cmdmap['g'] = SW;
    cmdmap['h'] = SW;
    cmdmap['i'] = SW;
    cmdmap['j'] = SW;
    cmdmap['4'] = SW;

    cmdmap['l'] = SE;
    cmdmap['m'] = SE;
    cmdmap['n'] = SE;
    cmdmap['o'] = SE;
    cmdmap[' '] = SE;
    cmdmap['5'] = SE;

    cmdmap['d'] = CW;
    cmdmap['q'] = CW;
    cmdmap['r'] = CW;
    cmdmap['v'] = CW;
    cmdmap['z'] = CW;
    cmdmap['1'] = CW;

    cmdmap['k'] = CCW;
    cmdmap['s'] = CCW;
    cmdmap['t'] = CCW;
    cmdmap['u'] = CCW;
    cmdmap['w'] = CCW;
    cmdmap['x'] = CCW;
  }

  return cmdmap[c];
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movb %dil, 0xf(%rsp)
callq 0x33d0
movb %al, 0xf(%rsp)
cmpq $0x0, 0x19b2f(%rip)     # 0x1e838
jne 0x5046
leaq 0xe(%rsp), %r14
movb $0x70, (%r14)
leaq 0x19af1(%rip), %rbx     # 0x1e810
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
xorl %ebp, %ebp
movl %ebp, (%rax)
movb $0x27, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x21, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x2e, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x30, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x33, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x62, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl $0x1, %ebp
movl %ebp, (%rax)
movb $0x63, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x65, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x66, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x79, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x32, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x61, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl $0x2, %ebp
movl %ebp, (%rax)
movb $0x67, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x68, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x69, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x6a, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x34, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x6c, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl $0x3, %ebp
movl %ebp, (%rax)
movb $0x6d, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x6e, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x6f, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x20, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x35, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x64, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl $0x4, %ebp
movl %ebp, (%rax)
movb $0x71, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x72, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x76, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x7a, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x31, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x6b, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl $0x5, %ebp
movl %ebp, (%rax)
movb $0x73, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x74, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x75, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x77, (%r14)
leaq 0xe(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xba9e
movl %ebp, (%rax)
movb $0x78, (%r14)
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
callq 0xba9e
movl %ebp, (%rax)
leaq 0x197c3(%rip), %rdi     # 0x1e810
leaq 0xf(%rsp), %rsi
callq 0xbb02
movl (%rax), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq