import numpy as np



N = int(eval(input()))

S = np.array([int(i) for i in input().split()])



if len(np.unique(S))==len(S):

  print("YES")

else:

  print("NO")

N = int(eval(input()))

S = [int(i) for i in input().split()]

S.sort()



flg = 0

for i in range(1,N):

  if S[i] == S[i-1]:

    flg = 1

    

if flg == 1:

  print("NO")

else:

  print("YES")  
import numpy as np

N = int(eval(input()))
S = np.array([int(i) for i in input().split()])
if len(np.unique(S)) == len(S):
    print("YES")
else:
    print("NO")

N = int(eval(input()))
S = [int(i) for i in input().split()]
S.sort()
flg = 0
for i in range(1, N):
    if S[i] == S[i - 1]:
        flg = 1
if flg == 1:
    print("NO")
else:
    print("YES")

-import numpy as np - -S = np.array([int(i) for i in input().split()]) -if len(np.unique(S)) == len(S): +S = [int(i) for i in input().split()] +S.sort() +flg = 0 +for i in range(1, N): +    if S[i] == S[i - 1]: +        flg = 1 +if flg == 1: +    print("NO") +else: -else: -    print("NO")