N = int(input())
A = sorted(list(map(int,input().split())))

for i in range(1,N):
    if A[i] == A[i-1]:
        print("NO")
        Flag = False
        break
    else:
        Flag = True

if Flag:
    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 for i in range(1,N):
    if A[i] == A[i-1]:
        print("NO")
        Flag = False
        break
    else:
        Flag = True i range(1,N) range 1 N if A[i] == A[i-1]:
        print("NO")
        Flag = False
        break
    else:
        Flag = True A[i] == A[i-1] A[i] A i A[i-1] A i-1 i 1 print("NO") print "NO" Flag = False Flag False break Flag = True Flag True if Flag:
    print("YES") Flag print("YES") print "YES" A = sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) A Flag = True True Flag N = int(input()) int(input()) N Flag = False False Flag
N = int(input())
A = sorted(list(map(int,input().split())))

for i in range(1,N):
    if A[i] == A[i-1]:
        print("NO")
        Flag = False
        break
    else:
        Flag = True

if Flag:
    print("YES")