N = int(eval(input()))

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

flag = True

A.sort()

for i in range(1,len(A)):

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

    flag = False



if flag:

  print("YES")

else:

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

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

a = len(list(set(a)))

if n == a:

    print("YES")

else:

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

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

-N = int(eval(input())) -A = list(map(int, input().split())) -flag = True -A.sort() -for i in range(1, len(A)): -    if A[i - 1] == A[i]: -        flag = False -if flag: +n = int(eval(input())) +a = list(map(int, input().split())) +a = len(list(set(a))) +if n == a: