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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x14(%rbp)
lea    0xec0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1188 <main+0x68>
movslq -0xc(%rbp),%rax
lea    -0xe0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe8f(%rip),%rdi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1150 <main+0x30>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1212 <main+0xf2>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11f0 <main+0xd0>
movslq -0xc(%rbp),%rax
mov    -0xe0(%rbp,%rax,4),%eax
movslq -0x10(%rbp),%rcx
cmp    -0xe0(%rbp,%rcx,4),%eax
jne    11dd <main+0xbd>
movl   $0x0,-0x14(%rbp)
jmp    11f0 <main+0xd0>
jmp    11e2 <main+0xc2>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11a9 <main+0x89>
cmpl   $0x0,-0x14(%rbp)
jne    11ff <main+0xdf>
jmp    1212 <main+0xf2>
jmp    1204 <main+0xe4>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118f <main+0x6f>
cmpl   $0x0,-0x14(%rbp)
jne    122d <main+0x10d>
lea    0xde5(%rip),%rdi
call   1030 <printf@plt>
jmp    1239 <main+0x119>
lea    0xdd8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%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    0xec6(%rip),%r14
cmpl   $0x0,0xc(%rsp)
jle    11e3 <main+0xc3>
lea    0x10(%rsp),%r12
xor    %ebx,%ebx
lea    0xea5(%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
cmp    $0x2,%eax
jl     11e3 <main+0xc3>
lea    -0x1(%rax),%r9d
lea    0x10(%rsp),%rdx
xor    %ebx,%ebx
lea    0xe72(%rip),%r8
mov    %rax,%rdi
jmp    11ad <main+0x8d>
nopl   0x0(%rax,%rax,1)
add    $0x4,%rdx
add    $0xffffffffffffffff,%rdi
cmp    %r9,%rbx
je     11e3 <main+0xc3>
mov    %rbx,%rcx
add    $0x1,%rbx
cmp    %rax,%rbx
jae    11a0 <main+0x80>
mov    0x10(%rsp,%rcx,4),%esi
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    (%rdx,%rcx,4),%esi
je     11e0 <main+0xc0>
add    $0x1,%rcx
cmp    %rcx,%rdi
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 = [4 x i8] c"%d\0A\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [4 x i8] c"YES\00"
@.str.3 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [50 x i32]
store i32 0, i32* %1
store i32 1, i32* %5
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %2)
store i32 0, i32* %3
br label %8
8: ; preds = %17, %0
%9 = load i32, i32* %3
%10 = load i32, i32* %2
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [50 x i32], [50 x i32]* %6, i64 0, i64 %14
%16 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %15)
br label %17
17: ; preds = %12
%18 = load i32, i32* %3
%19 = add nsw i32 %18, 1
store i32 %19, i32* %3
br label %8
20: ; preds = %8
store i32 0, i32* %3
br label %21
21: ; preds = %53, %20
%22 = load i32, i32* %3
%23 = load i32, i32* %2
%24 = sub nsw i32 %23, 1
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %56
26: ; preds = %21
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %29
29: ; preds = %45, %26
%30 = load i32, i32* %4
%31 = load i32, i32* %2
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %48
33: ; preds = %29
%34 = load i32, i32* %3
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [50 x i32], [50 x i32]* %6, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [50 x i32], [50 x i32]* %6, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = icmp eq i32 %37, %41
br i1 %42, label %43, label %44
43: ; preds = %33
store i32 0, i32* %5
br label %48
44: ; preds = %33
br label %45
45: ; preds = %44
%46 = load i32, i32* %4
%47 = add nsw i32 %46, 1
store i32 %47, i32* %4
br label %29
48: ; preds = %43, %29
%49 = load i32, i32* %5
%50 = icmp ne i32 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %48
br label %56
52: ; preds = %48
br label %53
53: ; preds = %52
%54 = load i32, i32* %3
%55 = add nsw i32 %54, 1
store i32 %55, i32* %3
br label %21
56: ; preds = %51, %21
%57 = load i32, i32* %5
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %56
%60 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
br label %63
61: ; preds = %56
%62 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %63
63: ; preds = %61, %59
ret i32 0
}

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