n = int( eval(input()) )

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



if n == len(a):

  ans = "YES"

else:

  ans = "NO"



print( ans )
n = int( eval(input()) )

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

 

if len(a) == len(set( a )):

  print( "YES" )

else:

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

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

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