n = int(input())
al = list(map(int, input().split()))

a_s = set()
for a in al:
    if a in a_s:
        print('NO')
        break
    a_s.add(a)
else:
    print('YES') n = int(input()) n int(input()) int input() input al = list(map(int, input().split())) al list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a_s = set() a_s set() set for a in al:
    if a in a_s:
        print('NO')
        break
    a_s.add(a)
else:
    print('YES') a al if a in a_s:
        print('NO')
        break
     a in a_s a a_s print('NO') print 'NO' break a_s.add(a) a_s.add a_s add a print('YES') print 'YES' n = int(input()) int(input()) n a_s = set() set() a_s al = list(map(int, input().split())) list(map(int, input().split())) al
n = int(input())
al = list(map(int, input().split()))

a_s = set()
for a in al:
    if a in a_s:
        print('NO')
        break
    a_s.add(a)
else:
    print('YES')