#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() {
  int N;
  scanf("%d", &N);
  if (N >= 86)
    printf("A\n");
  else if (N >= 61)
    printf("B\n");
  else if (N >= 36)
    printf("C\n");
  else if (N >= 1)
    printf("D\n");
  else
    printf("E\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x56,-0x8(%rbp)
jl     115a <main+0x3a>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
jmp    11c6 <main+0xa6>
cmpl   $0x3d,-0x8(%rbp)
jl     1175 <main+0x55>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    11c1 <main+0xa1>
cmpl   $0x24,-0x8(%rbp)
jl     1190 <main+0x70>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
jmp    11bc <main+0x9c>
cmpl   $0x1,-0x8(%rbp)
jl     11ab <main+0x8b>
lea    0xe6b(%rip),%rdi
call   1030 <printf@plt>
jmp    11b7 <main+0x97>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    11bc <main+0x9c>
jmp    11c1 <main+0xa1>
jmp    11c6 <main+0xa6>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x55,%eax
jle    1144 <main+0x24>
lea    0xec9(%rip),%rdi
jmp    1174 <main+0x54>
cmp    $0x3c,%eax
jle    1152 <main+0x32>
lea    0xeb9(%rip),%rdi
jmp    1174 <main+0x54>
cmp    $0x23,%eax
jle    1160 <main+0x40>
lea    0xea9(%rip),%rdi
jmp    1174 <main+0x54>
test   %eax,%eax
lea    0xe9c(%rip),%rax
lea    0xe93(%rip),%rdi
cmovg  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"A\0A\00"
@.str.2 = [3 x i8] c"B\0A\00"
@.str.3 = [3 x i8] c"C\0A\00"
@.str.4 = [3 x i8] c"D\0A\00"
@.str.5 = [3 x i8] c"E\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = icmp sge i32 %4, 86
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %28
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 61
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %27
13: ; preds = %8
%14 = load i32, i32* %2
%15 = icmp sge i32 %14, 36
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %26
18: ; preds = %13
%19 = load i32, i32* %2
%20 = icmp sge i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %25
23: ; preds = %18
%24 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
br label %26
26: ; preds = %25, %16
br label %27
27: ; preds = %26, %11
br label %28
28: ; preds = %27, %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@str = [2 x i8] c"E\00"
@str.6 = [2 x i8] c"D\00"
@str.7 = [2 x i8] c"C\00"
@str.8 = [2 x i8] c"B\00"
@str.9 = [2 x i8] c"A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp sgt i32 %4, 85
br i1 %5, label %13, label %6
6: ; preds = %0
%7 = icmp sgt i32 %4, 60
br i1 %7, label %13, label %8
8: ; preds = %6
%9 = icmp sgt i32 %4, 35
br i1 %9, label %13, label %10
10: ; preds = %8
%11 = icmp sgt i32 %4, 0
%12 = select i1 %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0)
br label %13
13: ; preds = %10, %8, %6, %0
%14 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0), %0 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.8, i64 0, i64 0), %6 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @str.7, i64 0, i64 0), %8 ], [ %12, %10 ]
%15 = call i32 @puts(i8* dereferenceable(1) %14)
ret i32 0
}