#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 *, char);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char c;
  int n;
  scanf("%c", &c);
  n = c;
  int m;
  char print;
  if (n >= 97 && n <= 109) {
    m = 109 - n;
    print = 110 + m;
    printf("%c", print);
  }
  if (n > 109 && n <= 122) {
    m = 123 - n;
    print = 96 + m;
    printf("%c", print);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x61,-0xc(%rbp)
jl     117e <main+0x5e>
cmpl   $0x6d,-0xc(%rbp)
jg     117e <main+0x5e>
mov    $0x6d,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x6e,%eax
mov    %al,-0x11(%rbp)
lea    0xe8b(%rip),%rdi
movsbl -0x11(%rbp),%esi
call   1030 <printf@plt>
cmpl   $0x6d,-0xc(%rbp)
jle    11b6 <main+0x96>
cmpl   $0x7a,-0xc(%rbp)
jg     11b6 <main+0x96>
mov    $0x7b,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x60,%eax
mov    %al,-0x11(%rbp)
lea    0xe53(%rip),%rdi
movsbl -0x11(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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
lea    -0x61(%rax),%ecx
cmp    $0x19,%cl
ja     1151 <main+0x31>
mov    $0xdb,%cl
sub    %al,%cl
movsbl %cl,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %2)
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 97
br i1 %10, label %11, label %22
11: ; preds = %0
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 109
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, i32* %3
%16 = sub nsw i32 109, %15
store i32 %16, i32* %4
%17 = load i32, i32* %4
%18 = add nsw i32 110, %17
%19 = trunc i32 %18 to i8
store i8 %19, i8* %5
%20 = load i8, i8* %5
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %20)
br label %22
22: ; preds = %14, %11, %0
%23 = load i32, i32* %3
%24 = icmp sgt i32 %23, 109
br i1 %24, label %25, label %36
25: ; preds = %22
%26 = load i32, i32* %3
%27 = icmp sle i32 %26, 122
br i1 %27, label %28, label %36
28: ; preds = %25
%29 = load i32, i32* %3
%30 = sub nsw i32 123, %29
store i32 %30, i32* %4
%31 = load i32, i32* %4
%32 = add nsw i32 96, %31
%33 = trunc i32 %32 to i8
store i8 %33, i8* %5
%34 = load i8, i8* %5
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %34)
br label %36
36: ; preds = %28, %25, %22
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i8
%2 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 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 %9
6: ; preds = %0
%7 = sub nuw i8 -37, %3
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %7)
br label %9
9: ; preds = %0, %6
ret i32 0
}