n = int(input())
A = list(map(int, input().split()))

A.sort()

for i in range(len(A)):
    if i == 0:
        continue
    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.sort() A.sort A sort for i in range(len(A)):
    if i == 0:
        continue
    if A[i-1] == A[i]:
        print('NO')
        exit() i range(len(A)) range len(A) len A if i == 0:
        continue
     i == 0 i 0 continue 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
n = int(input())
A = list(map(int, input().split()))

A.sort()

for i in range(len(A)):
    if i == 0:
        continue
    if A[i-1] == A[i]:
        print('NO')
        exit()
print('YES')
