n = int(eval(input()))

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



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

  print('YES')

  

else:

  print('NO')

  
n = int(eval(input()))

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



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

    print('YES')

else:

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

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

-if len(a) == len(set(a)): +if n == len(set(a)):