N = int(input())

A_list = list(map(int, input().split()))
A_list_min = sorted(A_list)

for i in range(len(A_list)-1):
    if A_list_min[i] == A_list_min[i+1]:
        print("NO")
        exit()
print("YES") N = int(input()) N int(input()) int input() input A_list = list(map(int, input().split())) A_list list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A_list_min = sorted(A_list) A_list_min sorted(A_list) sorted A_list for i in range(len(A_list)-1):
    if A_list_min[i] == A_list_min[i+1]:
        print("NO")
        exit() i range(len(A_list)-1) range len(A_list)-1 len(A_list) len A_list 1 if A_list_min[i] == A_list_min[i+1]:
        print("NO")
        exit() A_list_min[i] == A_list_min[i+1] A_list_min[i] A_list_min i A_list_min[i+1] A_list_min i+1 i 1 print("NO") print "NO" exit() exit print("YES") print "YES" N = int(input()) int(input()) N A_list = list(map(int, input().split())) list(map(int, input().split())) A_list A_list_min = sorted(A_list) sorted(A_list) A_list_min
N = int(input())

A_list = list(map(int, input().split()))
A_list_min = sorted(A_list)

for i in range(len(A_list)-1):
    if A_list_min[i] == A_list_min[i+1]:
        print("NO")
        exit()
print("YES")