nn = int(input())
aa = list(map(int,input().split()))
#print(aa)
aa.sort()
#print(aa)

flag = 0

for i in range(nn-1):
    if (aa[i] == aa[i+1]) and (flag == 0):
        print('NO')
        flag = 1

if flag == 0:
    print('YES') nn = int(input()) nn int(input()) int input() input aa = list(map(int,input().split())) aa list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split aa.sort() aa.sort aa sort flag = 0 flag 0 for i in range(nn-1):
    if (aa[i] == aa[i+1]) and (flag == 0):
        print('NO')
        flag = 1 i range(nn-1) range nn-1 nn 1 if (aa[i] == aa[i+1]) and (flag == 0):
        print('NO')
        flag = 1 (aa[i] == aa[i+1]) and (flag == 0) aa[i] == aa[i+1] aa[i] aa i aa[i+1] aa i+1 i 1 flag == 0 flag 0 print('NO') print 'NO' flag = 1 flag 1 if flag == 0:
    print('YES') flag == 0 flag 0 print('YES') print 'YES' flag = 1 1 flag flag = 0 0 flag nn = int(input()) int(input()) nn aa = list(map(int,input().split())) list(map(int,input().split())) aa
nn = int(input())
aa = list(map(int,input().split()))
#print(aa)
aa.sort()
#print(aa)

flag = 0

for i in range(nn-1):
    if (aa[i] == aa[i+1]) and (flag == 0):
        print('NO')
        flag = 1

if flag == 0:
    print('YES')