import collections



N=int(eval(input()))

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

a=collections.Counter(A).most_common()

print(("YES" if a[0][1]==1 else "NO"))

N=int(eval(input()))

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

a=set(A)

print(("YES" if len(A)==len(a) else "NO"))

import collections

N = int(eval(input()))
A = list(map(int, input().split()))
a = collections.Counter(A).most_common()
print(("YES" if a[0][1] == 1 else "NO"))

N = int(eval(input()))
A = list(map(int, input().split()))
a = set(A)
print(("YES" if len(A) == len(a) else "NO"))

-import collections - -a = collections.Counter(A).most_common() -print(("YES" if a[0][1] == 1 else "NO")) +a = set(A) +print(("YES" if len(A) == len(a) else "NO"))