from  collections import Counter

n = int(input())

a = Counter([int(x) for x in input().split()])

print('NO') if a.most_common()[0][1]>1 else print('YES')

from  collections import Counter

n = int(input())

a = Counter([int(x) for x in input().split()])

print('NO') if len(a)!=n else print('YES')

from collections import Counter

n = int(input())
a = Counter([int(x) for x in input().split()])
print("NO") if a.most_common()[0][1] > 1 else print("YES")

from collections import Counter

n = int(input())
a = Counter([int(x) for x in input().split()])
print("NO") if len(a) != n else print("YES")

-print("NO") if a.most_common()[0][1] > 1 else print("YES") +print("NO") if len(a) != n else print("YES")