N=int(input()) 
A=sorted(list(map(int,input().split())))
a=[]
for i in range(N-1):   
    if A[i]==A[i+1]:
        print("NO") 

        break
    elif i==N-2:print("YES") N=int(input()) N int(input()) int input() input A=sorted(list(map(int,input().split()))) A sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a=[] a [] for i in range(N-1):   
    if A[i]==A[i+1]:
        print("NO") 

        break
    elif i==N-2:print("YES") i range(N-1) range N-1 N 1 if A[i]==A[i+1]:
        print("NO") 

        break
    elif i==N-2:print("YES") A[i]==A[i+1] A[i] A i A[i+1] A i+1 i 1 print("NO") print "NO" break elif i==N-2:print("Y i==N-2 i N-2 N 2 N=int(input()) int(input()) N a=[] [] a A=sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) A
N=int(input()) 
A=sorted(list(map(int,input().split())))
a=[]
for i in range(N-1):   
    if A[i]==A[i+1]:
        print("NO") 

        break
    elif i==N-2:print("YES")
