#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 *, char *);
int main() {
  char bkv;
  scanf("%ch", &bkv);
  if (bkv == 'a') {
    printf("z");
  } else if (bkv == 'b') {
    printf("y");
  } else if (bkv == 'c') {
    printf("x");
  } else if (bkv == 'd') {
    printf("w");
  } else if (bkv == 'e') {
    printf("v");
  } else if (bkv == 'f') {
    printf("u");
  } else if (bkv == 'g') {
    printf("t");
  } else if (bkv == 'h') {
    printf("s");
  } else if (bkv == 'i') {
    printf("r");
  } else if (bkv == 'j') {
    printf("q");
  } else if (bkv == 'k') {
    printf("p");
  } else if (bkv == 'l') {
    printf("o");
  } else if (bkv == 'm') {
    printf("n");
  } else if (bkv == 'n') {
    printf("m");
  } else if (bkv == 'o') {
    printf("l");
  } else if (bkv == 'p') {
    printf("k");
  } else if (bkv == 'q') {
    printf("j");
  } else if (bkv == 'r') {
    printf("i");
  } else if (bkv == 's') {
    printf("h");
  } else if (bkv == 't') {
    printf("g");
  } else if (bkv == 'u') {
    printf("f");
  } else if (bkv == 'v') {
    printf("e");
  } else if (bkv == 'w') {
    printf("d");
  } else if (bkv == 'x') {
    printf("c");
  } else if (bkv == 'y') {
    printf("b");
  } else if (bkv == 'z') {
    printf("a");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jne    115d <main+0x3d>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    14c3 <main+0x3a3>
movsbl -0x5(%rbp),%eax
cmp    $0x62,%eax
jne    117b <main+0x5b>
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
jmp    14be <main+0x39e>
movsbl -0x5(%rbp),%eax
cmp    $0x63,%eax
jne    1199 <main+0x79>
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
jmp    14b9 <main+0x399>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
jne    11b7 <main+0x97>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    14b4 <main+0x394>
movsbl -0x5(%rbp),%eax
cmp    $0x65,%eax
jne    11d5 <main+0xb5>
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
jmp    14af <main+0x38f>
movsbl -0x5(%rbp),%eax
cmp    $0x66,%eax
jne    11f3 <main+0xd3>
lea    0xe25(%rip),%rdi
call   1030 <printf@plt>
jmp    14aa <main+0x38a>
movsbl -0x5(%rbp),%eax
cmp    $0x67,%eax
jne    1211 <main+0xf1>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
jmp    14a5 <main+0x385>
movsbl -0x5(%rbp),%eax
cmp    $0x68,%eax
jne    122f <main+0x10f>
lea    0xded(%rip),%rdi
call   1030 <printf@plt>
jmp    14a0 <main+0x380>
movsbl -0x5(%rbp),%eax
cmp    $0x69,%eax
jne    124d <main+0x12d>
lea    0xdd1(%rip),%rdi
call   1030 <printf@plt>
jmp    149b <main+0x37b>
movsbl -0x5(%rbp),%eax
cmp    $0x6a,%eax
jne    126b <main+0x14b>
lea    0xdb5(%rip),%rdi
call   1030 <printf@plt>
jmp    1496 <main+0x376>
movsbl -0x5(%rbp),%eax
cmp    $0x6b,%eax
jne    1289 <main+0x169>
lea    0xd99(%rip),%rdi
call   1030 <printf@plt>
jmp    1491 <main+0x371>
movsbl -0x5(%rbp),%eax
cmp    $0x6c,%eax
jne    12a7 <main+0x187>
lea    0xd7d(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <main+0x36c>
movsbl -0x5(%rbp),%eax
cmp    $0x6d,%eax
jne    12c5 <main+0x1a5>
lea    0xd61(%rip),%rdi
call   1030 <printf@plt>
jmp    1487 <main+0x367>
movsbl -0x5(%rbp),%eax
cmp    $0x6e,%eax
jne    12e3 <main+0x1c3>
lea    0xd45(%rip),%rdi
call   1030 <printf@plt>
jmp    1482 <main+0x362>
movsbl -0x5(%rbp),%eax
cmp    $0x6f,%eax
jne    1301 <main+0x1e1>
lea    0xd29(%rip),%rdi
call   1030 <printf@plt>
jmp    147d <main+0x35d>
movsbl -0x5(%rbp),%eax
cmp    $0x70,%eax
jne    131f <main+0x1ff>
lea    0xd0d(%rip),%rdi
call   1030 <printf@plt>
jmp    1478 <main+0x358>
movsbl -0x5(%rbp),%eax
cmp    $0x71,%eax
jne    133d <main+0x21d>
lea    0xcf1(%rip),%rdi
call   1030 <printf@plt>
jmp    1473 <main+0x353>
movsbl -0x5(%rbp),%eax
cmp    $0x72,%eax
jne    135b <main+0x23b>
lea    0xcd5(%rip),%rdi
call   1030 <printf@plt>
jmp    146e <main+0x34e>
movsbl -0x5(%rbp),%eax
cmp    $0x73,%eax
jne    1379 <main+0x259>
lea    0xc93(%rip),%rdi
call   1030 <printf@plt>
jmp    1469 <main+0x349>
movsbl -0x5(%rbp),%eax
cmp    $0x74,%eax
jne    1397 <main+0x277>
lea    0xc9b(%rip),%rdi
call   1030 <printf@plt>
jmp    1464 <main+0x344>
movsbl -0x5(%rbp),%eax
cmp    $0x75,%eax
jne    13b5 <main+0x295>
lea    0xc7f(%rip),%rdi
call   1030 <printf@plt>
jmp    145f <main+0x33f>
movsbl -0x5(%rbp),%eax
cmp    $0x76,%eax
jne    13d3 <main+0x2b3>
lea    0xc63(%rip),%rdi
call   1030 <printf@plt>
jmp    145a <main+0x33a>
movsbl -0x5(%rbp),%eax
cmp    $0x77,%eax
jne    13f1 <main+0x2d1>
lea    0xc47(%rip),%rdi
call   1030 <printf@plt>
jmp    1455 <main+0x335>
movsbl -0x5(%rbp),%eax
cmp    $0x78,%eax
jne    140f <main+0x2ef>
lea    0xc2b(%rip),%rdi
call   1030 <printf@plt>
jmp    1450 <main+0x330>
movsbl -0x5(%rbp),%eax
cmp    $0x79,%eax
jne    142d <main+0x30d>
lea    0xc0f(%rip),%rdi
call   1030 <printf@plt>
jmp    144b <main+0x32b>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jne    1446 <main+0x326>
lea    0xbf3(%rip),%rdi
call   1030 <printf@plt>
jmp    144b <main+0x32b>
jmp    1450 <main+0x330>
jmp    1455 <main+0x335>
jmp    145a <main+0x33a>
jmp    145f <main+0x33f>
jmp    1464 <main+0x344>
jmp    1469 <main+0x349>
jmp    146e <main+0x34e>
jmp    1473 <main+0x353>
jmp    1478 <main+0x358>
jmp    147d <main+0x35d>
jmp    1482 <main+0x362>
jmp    1487 <main+0x367>
jmp    148c <main+0x36c>
jmp    1491 <main+0x371>
jmp    1496 <main+0x376>
jmp    149b <main+0x37b>
jmp    14a0 <main+0x380>
jmp    14a5 <main+0x385>
jmp    14aa <main+0x38a>
jmp    14af <main+0x38f>
jmp    14b4 <main+0x394>
jmp    14b9 <main+0x399>
jmp    14be <main+0x39e>
jmp    14c3 <main+0x3a3>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x7(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x7(%rsp),%al
add    $0x9f,%al
cmp    $0x19,%al
ja     114b <main+0x2b>
movzbl %al,%eax
mov    $0x7a,%edi
sub    %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%ch\00"
@.str.1 = [2 x i8] c"z\00"
@.str.2 = [2 x i8] c"y\00"
@.str.3 = [2 x i8] c"x\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [2 x i8] c"v\00"
@.str.6 = [2 x i8] c"u\00"
@.str.7 = [2 x i8] c"t\00"
@.str.8 = [2 x i8] c"s\00"
@.str.9 = [2 x i8] c"r\00"
@.str.10 = [2 x i8] c"q\00"
@.str.11 = [2 x i8] c"p\00"
@.str.12 = [2 x i8] c"o\00"
@.str.13 = [2 x i8] c"n\00"
@.str.14 = [2 x i8] c"m\00"
@.str.15 = [2 x i8] c"l\00"
@.str.16 = [2 x i8] c"k\00"
@.str.17 = [2 x i8] c"j\00"
@.str.18 = [2 x i8] c"i\00"
@.str.19 = [2 x i8] c"h\00"
@.str.20 = [2 x i8] c"g\00"
@.str.21 = [2 x i8] c"f\00"
@.str.22 = [2 x i8] c"e\00"
@.str.23 = [2 x i8] c"d\00"
@.str.24 = [2 x i8] c"c\00"
@.str.25 = [2 x i8] c"b\00"
@.str.26 = [2 x i8] c"a\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 97
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %184
9: ; preds = %0
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 98
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %183
15: ; preds = %9
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 99
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %182
21: ; preds = %15
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 100
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %181
27: ; preds = %21
%28 = load i8, i8* %2
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 101
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %180
33: ; preds = %27
%34 = load i8, i8* %2
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 102
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %179
39: ; preds = %33
%40 = load i8, i8* %2
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 103
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %178
45: ; preds = %39
%46 = load i8, i8* %2
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 104
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %177
51: ; preds = %45
%52 = load i8, i8* %2
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 105
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %176
57: ; preds = %51
%58 = load i8, i8* %2
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 106
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %175
63: ; preds = %57
%64 = load i8, i8* %2
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 107
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %174
69: ; preds = %63
%70 = load i8, i8* %2
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 108
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %173
75: ; preds = %69
%76 = load i8, i8* %2
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 109
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %172
81: ; preds = %75
%82 = load i8, i8* %2
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 110
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %171
87: ; preds = %81
%88 = load i8, i8* %2
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 111
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %170
93: ; preds = %87
%94 = load i8, i8* %2
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 112
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %169
99: ; preds = %93
%100 = load i8, i8* %2
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 113
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
br label %168
105: ; preds = %99
%106 = load i8, i8* %2
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 114
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %167
111: ; preds = %105
%112 = load i8, i8* %2
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 115
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %166
117: ; preds = %111
%118 = load i8, i8* %2
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 116
br i1 %120, label %121, label %123
121: ; preds = %117
%122 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
br label %165
123: ; preds = %117
%124 = load i8, i8* %2
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 117
br i1 %126, label %127, label %129
127: ; preds = %123
%128 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %164
129: ; preds = %123
%130 = load i8, i8* %2
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 118
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
br label %163
135: ; preds = %129
%136 = load i8, i8* %2
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 119
br i1 %138, label %139, label %141
139: ; preds = %135
%140 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %162
141: ; preds = %135
%142 = load i8, i8* %2
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 120
br i1 %144, label %145, label %147
145: ; preds = %141
%146 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
br label %161
147: ; preds = %141
%148 = load i8, i8* %2
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 121
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %160
153: ; preds = %147
%154 = load i8, i8* %2
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 122
br i1 %156, label %157, label %159
157: ; preds = %153
%158 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0))
br label %159
159: ; preds = %157, %153
br label %160
160: ; preds = %159, %151
br label %161
161: ; preds = %160, %145
br label %162
162: ; preds = %161, %139
br label %163
163: ; preds = %162, %133
br label %164
164: ; preds = %163, %127
br label %165
165: ; preds = %164, %121
br label %166
166: ; preds = %165, %115
br label %167
167: ; preds = %166, %109
br label %168
168: ; preds = %167, %103
br label %169
169: ; preds = %168, %97
br label %170
170: ; preds = %169, %91
br label %171
171: ; preds = %170, %85
br label %172
172: ; preds = %171, %79
br label %173
173: ; preds = %172, %73
br label %174
174: ; preds = %173, %67
br label %175
175: ; preds = %174, %61
br label %176
176: ; preds = %175, %55
br label %177
177: ; preds = %176, %49
br label %178
178: ; preds = %177, %43
br label %179
179: ; preds = %178, %37
br label %180
180: ; preds = %179, %31
br label %181
181: ; preds = %180, %25
br label %182
182: ; preds = %181, %19
br label %183
183: ; preds = %182, %13
br label %184
184: ; preds = %183, %7
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ch\00"
define i32 @main() {
%1 = alloca i8
%2 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = load i8, i8* %1
%4 = add i8 %3, -97
%5 = icmp ult i8 %4, 26
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = zext i8 %4 to i32
%8 = sub nsw i32 122, %7
%9 = call i32 @putchar(i32 %8)
br label %10
10: ; preds = %0, %6
ret i32 0
}