#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);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int numberOfDeers, deerN[100], temp, i;
  for (i = 0; i < 100; i++) {
    deerN[i] = 0;
  }
  scanf("%d", &numberOfDeers);
  for (i = 0; i < numberOfDeers; i++) {
    scanf("%d", &temp);
    deerN[temp - 1]++;
  }
  for (i = 0; i < 100; i++) {
    if (deerN[i] == 1)
      break;
  }
  printf("%d", i + 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x1a8(%rbp)
cmpl   $0x64,-0x1a8(%rbp)
jge    116f <main+0x4f>
movslq -0x1a8(%rbp),%rax
movl   $0x0,-0x1a0(%rbp,%rax,4)
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    113c <main+0x1c>
lea    0xe8a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11db <main+0xbb>
lea    0xe61(%rip),%rdi
lea    -0x1a4(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x1a4(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x1a0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x1a0(%rbp,%rax,4)
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    1189 <main+0x69>
movl   $0x0,-0x1a8(%rbp)
cmpl   $0x64,-0x1a8(%rbp)
jge    1225 <main+0x105>
movslq -0x1a8(%rbp),%rax
cmpl   $0x1,-0x1a0(%rbp,%rax,4)
jne    120c <main+0xec>
jmp    1225 <main+0x105>
jmp    1211 <main+0xf1>
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    11e5 <main+0xc5>
mov    -0x1a8(%rbp),%esi
add    $0x1,%esi
lea    0xdcb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x1a0,%rsp
lea    0x10(%rsp),%rdi
xor    %ebp,%ebp
mov    $0x190,%edx
xor    %esi,%esi
call   1040 <memset@plt>
lea    0xeab(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    119e <main+0x6e>
lea    0xe93(%rip),%r14
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
movslq 0xc(%rsp),%rax
addl   $0x1,0xc(%rsp,%rax,4)
add    $0x1,%ebp
cmp    0x8(%rsp),%ebp
jl     1180 <main+0x50>
mov    $0x4,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpl   $0x1,(%rsp,%rsi,4)
je     11e3 <main+0xb3>
cmpl   $0x1,0x4(%rsp,%rsi,4)
je     11e9 <main+0xb9>
cmpl   $0x1,0x8(%rsp,%rsi,4)
je     11ef <main+0xbf>
cmpl   $0x1,0xc(%rsp,%rsi,4)
je     11f5 <main+0xc5>
cmpl   $0x1,0x10(%rsp,%rsi,4)
je     11f9 <main+0xc9>
add    $0x5,%rsi
cmp    $0x68,%rsi
jne    11b0 <main+0x80>
mov    $0x65,%esi
jmp    11fc <main+0xcc>
add    $0xfffffffffffffffc,%rsi
jmp    11f9 <main+0xc9>
add    $0xfffffffffffffffd,%rsi
jmp    11f9 <main+0xc9>
add    $0xfffffffffffffffe,%rsi
jmp    11f9 <main+0xc9>
add    $0xffffffffffffffff,%rsi
add    $0x1,%esi
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

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