number = int(input())
score = list(map(int,input().split()))
score.sort()
cancel = 0
for i in range(number-1):
    if score[i] == score[i+1]:
        cancel = 1
        break
if cancel == 1:
    print('NO')
else:
    print('YES') number = int(input()) number int(input()) int input() input score = list(map(int,input().split())) score list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split score.sort() score.sort score sort cancel = 0 cancel 0 for i in range(number-1):
    if score[i] == score[i+1]:
        cancel = 1
        break i range(number-1) range number-1 number 1 if score[i] == score[i+1]:
        cancel = 1
        break score[i] == score[i+1] score[i] score i score[i+1] score i+1 i 1 cancel = 1 cancel 1 break if cancel == 1:
    print('NO')
else:
    print('YES') cancel == 1 cancel 1 print('NO') print 'NO' print('YES') print 'YES' cancel = 1 1 cancel number = int(input()) int(input()) number cancel = 0 0 cancel score = list(map(int,input().split())) list(map(int,input().split())) score
number = int(input())
score = list(map(int,input().split()))
score.sort()
cancel = 0
for i in range(number-1):
    if score[i] == score[i+1]:
        cancel = 1
        break
if cancel == 1:
    print('NO')
else:
    print('YES')