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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x32,-0x8(%rbp)
jg     1151 <main+0x31>
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
jmp    1132 <main+0x12>
movl   $0x0,-0xd4(%rbp)
movl   $0x0,-0xd8(%rbp)
mov    -0xd8(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1207 <main+0xe7>
movl   $0x0,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     11ee <main+0xce>
movslq -0xd8(%rbp),%rax
mov    -0xd0(%rbp,%rax,4),%eax
movslq -0xdc(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,4),%eax
jne    11d5 <main+0xb5>
mov    -0xd8(%rbp),%eax
cmp    -0xdc(%rbp),%eax
je     11d5 <main+0xb5>
movl   $0x1,-0xd4(%rbp)
jmp    11da <main+0xba>
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    1183 <main+0x63>
jmp    11f3 <main+0xd3>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
jmp    1165 <main+0x45>
cmpl   $0x1,-0xd4(%rbp)
jne    1225 <main+0x105>
lea    0xde8(%rip),%rdi
call   1030 <printf@plt>
jmp    1231 <main+0x111>
lea    0xddb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
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 i32
%3 = alloca [50 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
br label %7
7: ; preds = %10, %0
%8 = load i32, i32* %2
%9 = icmp sle i32 %8, 50
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %7
12: ; preds = %7
store i32 0, i32* %4
store i32 0, i32* %5
br label %13
13: ; preds = %44, %12
%14 = load i32, i32* %5
%15 = load i32, i32* %2
%16 = sub nsw i32 %15, 1
%17 = icmp sle i32 %14, %16
br i1 %17, label %18, label %47
18: ; preds = %13
store i32 0, i32* %6
br label %19
19: ; preds = %40, %18
%20 = load i32, i32* %6
%21 = load i32, i32* %2
%22 = sub nsw i32 %21, 1
%23 = icmp sle i32 %20, %22
br i1 %23, label %24, label %43
24: ; preds = %19
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [50 x i32], [50 x i32]* %3, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [50 x i32], [50 x i32]* %3, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = icmp eq i32 %28, %32
br i1 %33, label %34, label %39
34: ; preds = %24
%35 = load i32, i32* %5
%36 = load i32, i32* %6
%37 = icmp ne i32 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 1, i32* %4
br label %39
39: ; preds = %38, %34, %24
br label %40
40: ; preds = %39
%41 = load i32, i32* %6
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %19
43: ; preds = %19
br label %44
44: ; preds = %43
%45 = load i32, i32* %5
%46 = add nsw i32 %45, 1
store i32 %46, i32* %5
br label %13
47: ; preds = %13
%48 = load i32, i32* %4
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %54
52: ; preds = %47
%53 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %54
54: ; preds = %52, %50
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"NO\00"
define i32 @main() {
%1 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}