#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 *, unsigned char);
int /*<<< orphan*/ scanf(char *, unsigned char *);
int main() {
  unsigned char n, n2, number;
  scanf("%c", &n);
  if (n <= 'm') {
    n2 = 'm' - n;
    number = 'm' + n2 + 1;
  }
  if (n >= 'n') {
    n2 = n - 'n';
    number = 'n' - n2 - 1;
  }
  printf("%c", number);
}


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>
movzbl -0x5(%rbp),%eax
cmp    $0x6d,%eax
jg     1167 <main+0x47>
movzbl -0x5(%rbp),%ecx
mov    $0x6d,%eax
sub    %ecx,%eax
mov    %al,-0x6(%rbp)
movzbl -0x6(%rbp),%eax
add    $0x6d,%eax
add    $0x1,%eax
mov    %al,-0x7(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x6e,%eax
jl     118f <main+0x6f>
movzbl -0x5(%rbp),%eax
sub    $0x6e,%eax
mov    %al,-0x6(%rbp)
movzbl -0x6(%rbp),%ecx
mov    $0x6e,%eax
sub    %ecx,%eax
sub    $0x1,%eax
mov    %al,-0x7(%rbp)
lea    0xe6a(%rip),%rdi
movzbl -0x7(%rbp),%esi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xf(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    $0xdb,%al
sub    0xf(%rsp),%al
movzbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

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 = sub i8 -37, %3
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 zeroext %4)
ret i32 0
}