N = int(eval(input()))

A = [int(x) for x in input().split()]

B = sorted(A)

NO = False

for i in range(0,len(B)-1):

    if B[i+1] - B[i] == 0:

        NO = True

if NO == True:

    print('NO')

else:

    print('YES')
N = int(eval(input()))

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

S = sorted(A)

Check = False

for i in range(len(S)-1):

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

        Check = True

        break

if Check == True:

    print('NO')

else:

    print('YES')

    
N = int(eval(input()))
A = [int(x) for x in input().split()]
B = sorted(A)
NO = False
for i in range(0, len(B) - 1):
    if B[i + 1] - B[i] == 0:
        NO = True
if NO == True:
    print("NO")
else:
    print("YES")

N = int(eval(input()))
A = list(map(int, input().split()))
S = sorted(A)
Check = False
for i in range(len(S) - 1):
    if S[i] == S[i + 1]:
        Check = True
        break
if Check == True:
    print("NO")
else:
    print("YES")

-A = [int(x) for x in input().split()] -B = sorted(A) -NO = False -for i in range(0, len(B) - 1): -    if B[i + 1] - B[i] == 0: -        NO = True -if NO == True: +A = list(map(int, input().split())) +S = sorted(A) +Check = False +for i in range(len(S) - 1): +    if S[i] == S[i + 1]: +        Check = True +        break +if Check == True: