#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 a[50], n, i, j;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      if (a[i] == a[j]) {
        printf("YES");
        return 0;
      }
    }
  }
  printf("NO");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xec7(%rip),%rdi
lea    -0xd4(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
cmp    -0xd4(%rbp),%eax
jge    1196 <main+0x76>
movslq -0xd8(%rbp),%rax
lea    -0xd0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe83(%rip),%rdi
call   1040 <scanf@plt>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    114f <main+0x2f>
movl   $0x0,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
cmp    -0xd4(%rbp),%eax
jge    123f <main+0x11f>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
cmp    -0xd4(%rbp),%eax
jge    1226 <main+0x106>
movslq -0xd8(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%eax
movslq -0xdc(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,4),%eax
jne    120d <main+0xed>
lea    0xe07(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1252 <main+0x132>
jmp    1212 <main+0xf2>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    11c1 <main+0xa1>
jmp    122b <main+0x10b>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    11a0 <main+0x80>
lea    0xdc1(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xd8,%rsp
lea    0xecb(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
lea    0xec1(%rip),%r14
cmpl   $0x0,0xc(%rsp)
jle    11e3 <main+0xc3>
lea    0x10(%rsp),%r12
xor    %ebx,%ebx
lea    0xea1(%rip),%r15
nop
mov    %r15,%rdi
mov    %r12,%rsi
call   1040 <scanf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
add    $0x4,%r12
cmp    %rax,%rbx
jl     1160 <main+0x40>
mov    %eax,%eax
test   %eax,%eax
jle    11e3 <main+0xc3>
lea    0x10(%rsp),%rcx
xor    %edi,%edi
lea    0xe72(%rip),%r8
mov    %rax,%rsi
jmp    11ad <main+0x8d>
cs nopw 0x0(%rax,%rax,1)
add    $0x4,%rcx
add    $0xffffffffffffffff,%rsi
cmp    %rax,%rdi
je     11e3 <main+0xc3>
mov    %rdi,%rdx
add    $0x1,%rdi
cmp    %rax,%rdi
jae    11a0 <main+0x80>
mov    0x10(%rsp,%rdx,4),%ebx
mov    $0x1,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    (%rcx,%rdx,4),%ebx
je     11e0 <main+0xc0>
add    $0x1,%rdx
cmp    %rdx,%rsi
jne    11d0 <main+0xb0>
jmp    11a0 <main+0x80>
mov    %r8,%r14
mov    %r14,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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