N = int(input())
A = list(map(int, input().split()))
A.sort()
Ans = "YES"
List = []
before_n = 0
for e in A:
    if e == before_n:
        Ans = "NO"
        break
    else:
        before_n=e
print(Ans) 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 Ans = "YES" Ans "YES" List = [] List [] before_n = 0 before_n 0 for e in A:
    if e == before_n:
        Ans = "NO"
        break
    else:
        before_n=e e A if e == before_n:
        Ans = "NO"
        break
    else:
        before_n=e e == before_n e before_n Ans = "NO" Ans "NO" break before_n=e before_n e print(Ans) print Ans N = int(input()) int(input()) N Ans = "NO" "NO" Ans List = [] [] List before_n = 0 0 before_n Ans = "YES" "YES" Ans A = list(map(int, input().split())) list(map(int, input().split())) A before_n=e e before_n
N = int(input())
A = list(map(int, input().split()))
A.sort()
Ans = "YES"
List = []
before_n = 0
for e in A:
    if e == before_n:
        Ans = "NO"
        break
    else:
        before_n=e
print(Ans)