n = int(eval(input()))

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

list.sort(a)

y = True



for i in range(n - 1):

    if a[i] == a[i + 1]:

        y = False

        break

        

if y:

    print('YES')

else:

    print('NO')
n = int(eval(input()))

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

b = list(set(a))

m = len(b)

if n == m:

    print('YES')

else:

    print('NO')
n = int(eval(input()))
a = list(map(int, input().split()))
list.sort(a)
y = True
for i in range(n - 1):
    if a[i] == a[i + 1]:
        y = False
        break
if y:
    print("YES")
else:
    print("NO")

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

-list.sort(a) -y = True -for i in range(n - 1): -    if a[i] == a[i + 1]: -        y = False -        break -if y: +b = list(set(a)) +m = len(b) +if n == m: