#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++) {
    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    11ee <main+0xce>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
cmp    -0xd4(%rbp),%eax
jge    11d5 <main+0xb5>
movslq -0xd8(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%eax
movslq -0xdc(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,4),%eax
jne    11bc <main+0x9c>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1201 <main+0xe1>
jmp    11c1 <main+0xa1>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    1170 <main+0x50>
jmp    11da <main+0xba>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    114f <main+0x2f>
lea    0xe12(%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>:
sub    $0xd8,%rsp
lea    0xed2(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%r9d
lea    0xec3(%rip),%rdi
test   %r9d,%r9d
jle    11a3 <main+0x83>
lea    0x10(%rsp),%rcx
xor    %r10d,%r10d
lea    0xeab(%rip),%r8
mov    %r9,%rsi
jmp    116d <main+0x4d>
nopl   (%rax)
add    $0x4,%rcx
add    $0xffffffffffffffff,%rsi
cmp    %r9,%r10
je     11a3 <main+0x83>
mov    %r10,%rax
add    $0x1,%r10
cmp    %r9,%r10
jae    1160 <main+0x40>
mov    0x10(%rsp,%rax,4),%eax
mov    $0x1,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    (%rcx,%rdx,4),%eax
je     11a0 <main+0x80>
add    $0x1,%rdx
cmp    %rdx,%rsi
jne    1190 <main+0x70>
jmp    1160 <main+0x40>
mov    %r8,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
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 = %35, %0
%8 = load i32, i32* %4
%9 = load i32, i32* %3
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %38
11: ; preds = %7
%12 = load i32, i32* %4
%13 = add nsw i32 %12, 1
store i32 %13, i32* %5
br label %14
14: ; preds = %31, %11
%15 = load i32, i32* %5
%16 = load i32, i32* %3
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %34
18: ; preds = %14
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 %20
%22 = load i32, i32* %21
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x i32], [50 x i32]* %2, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = icmp eq i32 %22, %26
br i1 %27, label %28, label %30
28: ; preds = %18
%29 = 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 %40
30: ; preds = %18
br label %31
31: ; preds = %30
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %14
34: ; preds = %14
br label %35
35: ; preds = %34
%36 = load i32, i32* %4
%37 = add nsw i32 %36, 1
store i32 %37, i32* %4
br label %7
38: ; preds = %7
%39 = 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 %40
40: ; preds = %38, %28
%41 = load i32, i32* %1
ret i32 %41
}

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 %8, label %30
8: ; preds = %0
%9 = zext i32 %6 to i64
%10 = zext i32 %6 to i64
br label %14
11: ; preds = %22, %14
%12 = add nuw nsw i64 %16, 1
%13 = icmp eq i64 %17, %10
br i1 %13, label %30, label %14
14: ; preds = %8, %11
%15 = phi i64 [ 0, %8 ], [ %17, %11 ]
%16 = phi i64 [ 1, %8 ], [ %12, %11 ]
%17 = add nuw nsw i64 %15, 1
%18 = icmp ult i64 %17, %9
br i1 %18, label %19, label %11
19: ; preds = %14
%20 = getelementptr inbounds [50 x i32], [50 x i32]* %1, i64 0, i64 %15
%21 = load i32, i32* %20
br label %24
22: ; preds = %24
%23 = icmp eq i64 %29, %10
br i1 %23, label %11, label %24
24: ; preds = %19, %22
%25 = phi i64 [ %16, %19 ], [ %29, %22 ]
%26 = getelementptr inbounds [50 x i32], [50 x i32]* %1, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = icmp eq i32 %21, %27
%29 = add nuw nsw i64 %25, 1
br i1 %28, label %30, label %22
30: ; preds = %11, %24, %0
%31 = phi i8* [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %0 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), %24 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %11 ]
%32 = call i32 @printf(i8* dereferenceable(1) %31)
ret i32 0
}