n = int(eval(input()))

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

if len(l) == len(set(l)):

    print ("YES")

else:

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

l = list(input().split())

print ("YES") if len(l) == len(set(l)) else print ("NO")

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

n = int(input())
l = list(input().split())
print("YES") if len(l) == len(set(l)) else print("NO")

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