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

from collections import Counter
b = Counter(a)

for i in b.values():
    if i>1:
        print('NO')
        break
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 from collections import Counter b = Counter(a) b Counter(a) Counter a for i in b.values():
    if i>1:
        print('NO')
        break
else:
    print('YES') i b.values() b.values b values if i>1:
        print('NO')
        break i>1 i 1 print('NO') print 'NO' break print('YES') print 'YES' n = int(input()) int(input()) n a = list(map(int,input().split())) list(map(int,input().split())) a b = Counter(a) Counter(a) b
n = int(input())
a = list(map(int,input().split()))

from collections import Counter
b = Counter(a)

for i in b.values():
    if i>1:
        print('NO')
        break
else:
    print('YES')