from collections import Counter





n = int(eval(input()))

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

cnt = Counter(a)



if max(cnt.values()) == 1:

    print('YES')

else:

    print('NO')

n = int(eval(input()))

a = list(input().split())



if len(a) == len(set(a)):

    print('YES')

else:

    print('NO')

from collections import Counter

n = int(eval(input()))
a = list(map(int, input().split()))
cnt = Counter(a)
if max(cnt.values()) == 1:
    print("YES")
else:
    print("NO")

n = int(eval(input()))
a = list(input().split())
if len(a) == len(set(a)):
    print("YES")
else:
    print("NO")

-from collections import Counter - -a = list(map(int, input().split())) -cnt = Counter(a) -if max(cnt.values()) == 1: +a = list(input().split()) +if len(a) == len(set(a)):