# -*- coding: utf-8 -*-
N = int(input())
A = list(map(int, input().split()))
A = sorted(A)

for i in range(1, N):
  if A[i-1] == A[i]:
    print("NO")
    exit()
print("YES") N = int(input()) N int(input()) int input() input A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = sorted(A) A sorted(A) sorted A for i in range(1, N):
  if A[i-1] == A[i]:
    print("NO")
    exit() i range(1, N) range 1 N if A[i-1] == A[i]:
    print("NO")
    exit() A[i-1] == A[i] A[i-1] A i-1 i 1 A[i] A i print("NO") print "NO" exit() exit print("YES") print "YES" A = list(map(int, input().split())) list(map(int, input().split())) A N = int(input()) int(input()) N A = sorted(A) sorted(A) A
# -*- coding: utf-8 -*-
N = int(input())
A = list(map(int, input().split()))
A = sorted(A)

for i in range(1, N):
  if A[i-1] == A[i]:
    print("NO")
    exit()
print("YES")