#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() {
  char klucz[27];
  int n;
  klucz[0] = 's';
  klucz[9] = 'w';
  klucz[18] = 'k';
  klucz[1] = 'i';
  klucz[10] = 'y';
  klucz[19] = 'r';
  klucz[2] = 'n';
  klucz[11] = 'c';
  klucz[20] = 'j';
  klucz[3] = 'h';
  klucz[12] = ' ';
  klucz[21] = 'u';
  klucz[4] = 'm';
  klucz[13] = 'b';
  klucz[22] = 'd';
  klucz[5] = 't';
  klucz[14] = 'q';
  klucz[23] = 'g';
  klucz[6] = 'p';
  klucz[15] = 'x';
  klucz[24] = 'o';
  klucz[7] = 'a';
  klucz[16] = 'e';
  klucz[25] = 'f';
  klucz[8] = 'l';
  klucz[17] = 'v';
  klucz[26] = 'z';
  scanf("%i", &n);
  while (n >= 0) {
    scanf("%i", &n);
    printf("%c", klucz[n]);
  }
  printf("\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x73,-0x20(%rbp)
movb   $0x77,-0x17(%rbp)
movb   $0x6b,-0xe(%rbp)
movb   $0x69,-0x1f(%rbp)
movb   $0x79,-0x16(%rbp)
movb   $0x72,-0xd(%rbp)
movb   $0x6e,-0x1e(%rbp)
movb   $0x63,-0x15(%rbp)
movb   $0x6a,-0xc(%rbp)
movb   $0x68,-0x1d(%rbp)
movb   $0x20,-0x14(%rbp)
movb   $0x75,-0xb(%rbp)
movb   $0x6d,-0x1c(%rbp)
movb   $0x62,-0x13(%rbp)
movb   $0x64,-0xa(%rbp)
movb   $0x74,-0x1b(%rbp)
movb   $0x71,-0x12(%rbp)
movb   $0x67,-0x9(%rbp)
movb   $0x70,-0x1a(%rbp)
movb   $0x78,-0x11(%rbp)
movb   $0x6f,-0x8(%rbp)
movb   $0x61,-0x19(%rbp)
movb   $0x65,-0x10(%rbp)
movb   $0x66,-0x7(%rbp)
movb   $0x6c,-0x18(%rbp)
movb   $0x76,-0xf(%rbp)
movb   $0x7a,-0x6(%rbp)
lea    0xe5e(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x24(%rbp)
jl     11e1 <main+0xc1>
lea    0xe44(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1040 <scanf@plt>
movslq -0x24(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ab <main+0x8b>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
movl   $0x756a726b,0x22(%rsp)
75
movw   $0x6764,0x26(%rsp)
movb   $0x6f,0x28(%rsp)
movw   $0x7665,0x20(%rsp)
movw   $0x7a66,0x29(%rsp)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xea4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0xc(%rsp)
js     11b1 <main+0x81>
lea    0xe8c(%rip),%r14
lea    0xc(%rsp),%rbx
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
movslq 0xc(%rsp),%rax
movsbl 0x10(%rsp,%rax,1),%edi
call   1030 <putchar@plt>
cmpl   $0x0,0xc(%rsp)
jns    1190 <main+0x60>
lea    0xe5b(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%i\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [27 x i8]
%3 = alloca i32
store i32 0, i32* %1
%4 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 0
store i8 115, i8* %4
%5 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 9
store i8 119, i8* %5
%6 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 18
store i8 107, i8* %6
%7 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 1
store i8 105, i8* %7
%8 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 10
store i8 121, i8* %8
%9 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 19
store i8 114, i8* %9
%10 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 2
store i8 110, i8* %10
%11 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 11
store i8 99, i8* %11
%12 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 20
store i8 106, i8* %12
%13 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 3
store i8 104, i8* %13
%14 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 12
store i8 32, i8* %14
%15 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 21
store i8 117, i8* %15
%16 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 4
store i8 109, i8* %16
%17 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 13
store i8 98, i8* %17
%18 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 22
store i8 100, i8* %18
%19 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 5
store i8 116, i8* %19
%20 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 14
store i8 113, i8* %20
%21 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 23
store i8 103, i8* %21
%22 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 6
store i8 112, i8* %22
%23 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 15
store i8 120, i8* %23
%24 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 24
store i8 111, i8* %24
%25 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 7
store i8 97, i8* %25
%26 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 16
store i8 101, i8* %26
%27 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 25
store i8 102, i8* %27
%28 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 8
store i8 108, i8* %28
%29 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 17
store i8 118, i8* %29
%30 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 26
store i8 122, i8* %30
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
br label %32
32: ; preds = %35, %0
%33 = load i32, i32* %3
%34 = icmp sge i32 %33, 0
br i1 %34, label %35, label %43
35: ; preds = %32
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [27 x i8], [27 x i8]* %2, i64 0, i64 %38
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %41)
br label %32
43: ; preds = %32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%i\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [27 x i8]
%2 = alloca i32
%3 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 18
store i8 107, i8* %5
%6 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 19
store i8 114, i8* %6
%7 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 20
store i8 106, i8* %7
%8 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 21
store i8 117, i8* %8
%9 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 22
store i8 100, i8* %9
%10 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 23
store i8 103, i8* %10
%11 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 24
store i8 111, i8* %11
%12 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 16
store i8 101, i8* %12
%13 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 25
store i8 102, i8* %13
%14 = bitcast [27 x i8]* %1 to <16 x i8>*
store <16 x i8> <i8 115, i8 105, i8 110, i8 104, i8 109, i8 116, i8 112, i8 97, i8 108, i8 119, i8 121, i8 99, i8 32, i8 98, i8 113, i8 120>, <16 x i8>* %14
%15 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 17
store i8 118, i8* %15
%16 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 26
store i8 122, i8* %16
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%18 = load i32, i32* %2
%19 = icmp sgt i32 %18, -1
br i1 %19, label %20, label %30
20: ; preds = %0, %20
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = call i32 @putchar(i32 %26)
%28 = load i32, i32* %2
%29 = icmp sgt i32 %28, -1
br i1 %29, label %20, label %30
30: ; preds = %20, %0
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret i32 0
}