n = int(input())
A = list(map(int, input().split()))
s = set()

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

for a in A:
    if a in s:
        print('NO')
        break
    s.add(a)
else:
    print('YES')