#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 a, b;
  scanf("%d", &a);
  if (a < 110) {
    a = 110 - a;
    b = 109 + a;
  } else {
    a = 123 - a;
    b = 96 + a;
  }
  printf("%c", b);
  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    $0x6e,%eax
jge    1169 <main+0x49>
movsbl -0x5(%rbp),%ecx
mov    $0x6e,%eax
sub    %ecx,%eax
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
add    $0x6d,%eax
mov    %al,-0x6(%rbp)
jmp    1181 <main+0x61>
movsbl -0x5(%rbp),%ecx
mov    $0x7b,%eax
sub    %ecx,%eax
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
add    $0x60,%eax
mov    %al,-0x6(%rbp)
lea    0xe7b(%rip),%rdi
movsbl -0x6(%rbp),%esi
call   1030 <printf@plt>
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
cmp    $0x6e,%al
mov    $0x6e,%ecx
mov    $0x7b,%edx
cmovl  %ecx,%edx
sub    %al,%dl
mov    %dl,0x7(%rsp)
mov    $0xdb,%cl
sub    %al,%cl
movsbl %cl,%esi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [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 = icmp slt i8 %3, 110
%5 = select i1 %4, i8 110, i8 123
%6 = sub i8 %5, %3
store i8 %6, i8* %1
%7 = sub i8 -37, %3
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %7)
ret i32 0
}