#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 number_rein, arr_rein[200], i, j, checker = 0, rudolph;
  do {
    scanf("%d", &number_rein);
    if (number_rein % 2 == 0)
      printf("The reindeers must be an odd number");
    else
      break;
  } while (1);
  for (i = 0; i < number_rein; i++) {
    scanf("%d", &arr_rein[i]);
  }
  for (i = 0; i < number_rein; i++) {
    checker = 0;
    for (j = 0; j < number_rein; j++) {
      if (i != j && arr_rein[i] == arr_rein[j]) {
        checker = 1;
        break;
      }
    }
    if (checker == 0) {
      rudolph = arr_rein[i];
      break;
    }
  }
  printf("%d", rudolph);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x33c(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1173 <main+0x53>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1178 <main+0x58>
jmp    118c <main+0x6c>
jmp    117d <main+0x5d>
mov    $0x1,%al
test   $0x1,%al
jne    113c <main+0x1c>
jmp    118c <main+0x6c>
movl   $0x0,-0x334(%rbp)
mov    -0x334(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11da <main+0xba>
movslq -0x334(%rbp),%rax
lea    -0x330(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe3f(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    1196 <main+0x76>
movl   $0x0,-0x334(%rbp)
mov    -0x334(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b1 <main+0x191>
movl   $0x0,-0x33c(%rbp)
movl   $0x0,-0x338(%rbp)
mov    -0x338(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1272 <main+0x152>
mov    -0x334(%rbp),%eax
cmp    -0x338(%rbp),%eax
je     1259 <main+0x139>
movslq -0x334(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
movslq -0x338(%rbp),%rcx
cmp    -0x330(%rbp,%rcx,4),%eax
jne    1259 <main+0x139>
movl   $0x1,-0x33c(%rbp)
jmp    1272 <main+0x152>
jmp    125e <main+0x13e>
mov    -0x338(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x338(%rbp)
jmp    1207 <main+0xe7>
cmpl   $0x0,-0x33c(%rbp)
jne    1298 <main+0x178>
movslq -0x334(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%eax
mov    %eax,-0x340(%rbp)
jmp    12b1 <main+0x191>
jmp    129d <main+0x17d>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    11e4 <main+0xc4>
mov    -0x340(%rbp),%esi
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x330,%rsp
lea    0xecd(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   $0x1,%al
jne    117d <main+0x5d>
lea    0xeb7(%rip),%r14
lea    0xead(%rip),%r15
lea    0xc(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   $0x1,%al
je     1160 <main+0x40>
test   %eax,%eax
jle    11ad <main+0x8d>
lea    0x10(%rsp),%r15
xor    %ebx,%ebx
lea    0xe71(%rip),%r14
nop
mov    %r14,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
add    $0x4,%r15
cmp    %rax,%rbx
jl     1190 <main+0x70>
mov    %eax,%ecx
xor    %eax,%eax
xor    %edx,%edx
jmp    11c9 <main+0xa9>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rdx
cmp    %rdx,%rcx
je     11de <main+0xbe>
cmp    %rdx,%rax
je     11c0 <main+0xa0>
mov    0x10(%rsp,%rax,4),%esi
cmp    0x10(%rsp,%rdx,4),%esi
jne    11c0 <main+0xa0>
add    $0x1,%rax
jmp    11b1 <main+0x91>
mov    %eax,%eax
mov    0x10(%rsp,%rax,4),%esi
lea    0xe15(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [36 x i8] c"The reindeers must be an odd number\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [200 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
br label %8
8: ; preds = %17, %0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %2
%11 = srem i32 %10, 2
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
br label %16
15: ; preds = %8
br label %18
16: ; preds = %13
br label %17
17: ; preds = %16
br i1 true, label %8, label %18
18: ; preds = %17, %15
store i32 0, i32* %4
br label %19
19: ; preds = %28, %18
%20 = load i32, i32* %4
%21 = load i32, i32* %2
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = load i32, i32* %4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %25
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %26)
br label %28
28: ; preds = %23
%29 = load i32, i32* %4
%30 = add nsw i32 %29, 1
store i32 %30, i32* %4
br label %19
31: ; preds = %19
store i32 0, i32* %4
br label %32
32: ; preds = %69, %31
%33 = load i32, i32* %4
%34 = load i32, i32* %2
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %72
36: ; preds = %32
store i32 0, i32* %6
store i32 0, i32* %5
br label %37
37: ; preds = %57, %36
%38 = load i32, i32* %5
%39 = load i32, i32* %2
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %60
41: ; preds = %37
%42 = load i32, i32* %4
%43 = load i32, i32* %5
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %56
45: ; preds = %41
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = icmp eq i32 %49, %53
br i1 %54, label %55, label %56
55: ; preds = %45
store i32 1, i32* %6
br label %60
56: ; preds = %45, %41
br label %57
57: ; preds = %56
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %37
60: ; preds = %55, %37
%61 = load i32, i32* %6
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %68
63: ; preds = %60
%64 = load i32, i32* %4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %65
%67 = load i32, i32* %66
store i32 %67, i32* %7
br label %72
68: ; preds = %60
br label %69
69: ; preds = %68
%70 = load i32, i32* %4
%71 = add nsw i32 %70, 1
store i32 %71, i32* %4
br label %32
72: ; preds = %63, %32
%73 = load i32, i32* %7
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %73)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [36 x i8] c"The reindeers must be an odd number\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [200 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [200 x i32]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = and i32 %6, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %12, %0
%10 = phi i32 [ %6, %0 ], [ %15, %12 ]
%11 = icmp sgt i32 %10, 0
br i1 %11, label %22, label %18
12: ; preds = %0, %12
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%15 = load i32, i32* %1
%16 = and i32 %15, 1
%17 = icmp eq i32 %16, 0
br i1 %17, label %12, label %9
18: ; preds = %22, %9
%19 = phi i32 [ %10, %9 ], [ %27, %22 ]
%20 = icmp sgt i32 %19, 0
%21 = zext i32 %19 to i64
br label %30
22: ; preds = %9, %22
%23 = phi i64 [ %26, %22 ], [ 0, %9 ]
%24 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %23
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %24)
%26 = add nuw nsw i64 %23, 1
%27 = load i32, i32* %1
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %26, %28
br i1 %29, label %22, label %18
30: ; preds = %49, %18
%31 = phi i64 [ 0, %18 ], [ %50, %49 ]
%32 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %31
br label %33
33: ; preds = %30, %41
%34 = phi i64 [ 0, %30 ], [ %42, %41 ]
%35 = icmp eq i64 %31, %34
br i1 %35, label %41, label %36
36: ; preds = %33
%37 = load i32, i32* %32
%38 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %34
%39 = load i32, i32* %38
%40 = icmp eq i32 %37, %39
br i1 %40, label %49, label %41
41: ; preds = %33, %36
%42 = add nuw nsw i64 %34, 1
%43 = icmp eq i64 %42, %21
br i1 %43, label %44, label %33
44: ; preds = %41
%45 = and i64 %31, 4294967295
%46 = getelementptr inbounds [200 x i32], [200 x i32]* %2, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %47)
ret i32 0
49: ; preds = %36
%50 = add nuw nsw i64 %31, 1
%51 = icmp ult i64 %50, %21
br label %30
}