a = int(eval(input()))

b = list(map(int, input().split(" ")))

t = set(b)

bb = list(t)



if (len(b) == len(bb)):

  print("YES")

else:

  print("NO")

N = int(eval(input()))

A = {i for i in input().split()}

print(("YES" if N==len(A) else "NO"))
a = int(eval(input()))
b = list(map(int, input().split(" ")))
t = set(b)
bb = list(t)
if len(b) == len(bb):
    print("YES")
else:
    print("NO")

N = int(eval(input()))
A = {i for i in input().split()}
print(("YES" if N == len(A) else "NO"))

-a = int(eval(input())) -b = list(map(int, input().split(" "))) -t = set(b) -bb = list(t) -if len(b) == len(bb): -    print("YES") -else: -    print("NO") +N = int(eval(input())) +A = {i for i in input().split()} +print(("YES" if N == len(A) else "NO"))