#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 data, sum, judge1, judge2, judge3, i = 1, j = 1, k = 1;
  scanf("%d", &data);
  data = data > 0 ? data : -data;
  judge1 = data % 2;
  while (data > 0) {
    k++;
    if (data % 10 % 2 == 0)
      i++;
    else
      j++;
    sum += data % 10;
    data /= 10;
  }
  judge3 = sum % 2;
  if (j == k && judge3 == 1)
    printf("Odd");
  else if (i == k)
    printf("Even");
  else
    printf("None");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
lea    0xeb5(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    1169 <main+0x49>
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    1171 <main+0x51>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    11f1 <main+0xd1>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11c4 <main+0xa4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11cd <main+0xad>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
add    -0xc(%rbp),%edx
mov    %edx,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    1185 <main+0x65>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x18(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1226 <main+0x106>
cmpl   $0x1,-0x18(%rbp)
jne    1226 <main+0x106>
lea    0xde7(%rip),%rdi
call   1030 <printf@plt>
jmp    1254 <main+0x134>
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1243 <main+0x123>
lea    0xdce(%rip),%rdi
call   1030 <printf@plt>
jmp    124f <main+0x12f>
lea    0xdc2(%rip),%rdi
call   1030 <printf@plt>
jmp    1254 <main+0x134>
xor    %eax,%eax
add    $0x30,%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
mov    %eax,%esi
neg    %esi
cmovs  %eax,%esi
jae    11b2 <main+0x92>
mov    $0x1,%r9d
mov    $0xcccccccd,%r8d
mov    $0x1,%edi
mov    $0x1,%r10d
cs nopw 0x0(%rax,%rax,1)
mov    %esi,%r11d
add    $0x1,%r9d
mov    %esi,%esi
imul   %r8,%rsi
shr    $0x23,%rsi
lea    (%rsi,%rsi,1),%ecx
lea    (%rcx,%rcx,4),%ecx
mov    %r11d,%eax
sub    %ecx,%eax
add    %eax,%edx
and    $0x1,%eax
add    %eax,%edi
xor    $0x1,%eax
add    %eax,%r10d
cmp    $0x9,%r11d
ja     1160 <main+0x40>
mov    %esi,0x4(%rsp)
cmp    %edi,%r9d
jne    11bf <main+0x9f>
mov    %edx,%eax
shr    $0x1f,%eax
add    %edx,%eax
and    $0xfffffffe,%eax
sub    %eax,%edx
cmp    $0x1,%edx
jne    11bf <main+0x9f>
lea    0xe53(%rip),%rdi
jmp    11d4 <main+0xb4>
mov    %esi,0x4(%rsp)
lea    0xe4a(%rip),%rdi
jmp    11d4 <main+0xb4>
cmp    %r10d,%r9d
lea    0xe3e(%rip),%rax
lea    0xe3c(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"Odd\00"
@.str.2 = [5 x i8] c"Even\00"
@.str.3 = [5 x i8] c"None\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %7
store i32 1, i32* %8
store i32 1, i32* %9
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = load i32, i32* %2
br label %18
15: ; preds = %0
%16 = load i32, i32* %2
%17 = sub nsw i32 0, %16
br label %18
18: ; preds = %15, %13
%19 = phi i32 [ %14, %13 ], [ %17, %15 ]
store i32 %19, i32* %2
%20 = load i32, i32* %2
%21 = srem i32 %20, 2
store i32 %21, i32* %4
br label %22
22: ; preds = %38, %18
%23 = load i32, i32* %2
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %45
25: ; preds = %22
%26 = load i32, i32* %9
%27 = add nsw i32 %26, 1
store i32 %27, i32* %9
%28 = load i32, i32* %2
%29 = srem i32 %28, 10
%30 = srem i32 %29, 2
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i32, i32* %7
%34 = add nsw i32 %33, 1
store i32 %34, i32* %7
br label %38
35: ; preds = %25
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
store i32 %37, i32* %8
br label %38
38: ; preds = %35, %32
%39 = load i32, i32* %2
%40 = srem i32 %39, 10
%41 = load i32, i32* %3
%42 = add nsw i32 %41, %40
store i32 %42, i32* %3
%43 = load i32, i32* %2
%44 = sdiv i32 %43, 10
store i32 %44, i32* %2
br label %22
45: ; preds = %22
%46 = load i32, i32* %3
%47 = srem i32 %46, 2
store i32 %47, i32* %6
%48 = load i32, i32* %8
%49 = load i32, i32* %9
%50 = icmp eq i32 %48, %49
br i1 %50, label %51, label %56
51: ; preds = %45
%52 = load i32, i32* %6
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %65
56: ; preds = %51, %45
%57 = load i32, i32* %7
%58 = load i32, i32* %9
%59 = icmp eq i32 %57, %58
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %64
62: ; preds = %56
%63 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %64
64: ; preds = %62, %60
br label %65
65: ; preds = %64, %54
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"Odd\00"
@.str.2 = [5 x i8] c"Even\00"
@.str.3 = [5 x i8] c"None\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 = call i32 @llvm.abs.i32(i32 %4, i1 true)
%6 = icmp eq i32 %4, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 %5, i32* %1
br label %31
8: ; preds = %0, %8
%9 = phi i32 [ %14, %8 ], [ 1, %0 ]
%10 = phi i32 [ %19, %8 ], [ 1, %0 ]
%11 = phi i32 [ %18, %8 ], [ 1, %0 ]
%12 = phi i32 [ %20, %8 ], [ undef, %0 ]
%13 = phi i32 [ %21, %8 ], [ %5, %0 ]
%14 = add nuw nsw i32 %9, 1
%15 = urem i32 %13, 10
%16 = and i32 %15, 1
%17 = xor i32 %16, 1
%18 = add nuw nsw i32 %17, %11
%19 = add nuw nsw i32 %10, %16
%20 = add nsw i32 %12, %15
%21 = udiv i32 %13, 10
%22 = icmp ult i32 %13, 10
br i1 %22, label %23, label %8
23: ; preds = %8
%24 = srem i32 %20, 2
%25 = icmp eq i32 %24, 1
store i32 %21, i32* %1
%26 = icmp eq i32 %19, %14
%27 = select i1 %26, i1 %25, i1 false
br i1 %27, label %31, label %28
28: ; preds = %23
%29 = icmp eq i32 %18, %14
%30 = select i1 %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
br label %31
31: ; preds = %28, %7, %23
%32 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %23 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %7 ], [ %30, %28 ]
%33 = call i32 @printf(i8* dereferenceable(1) %32)
ret i32 0
}