N = int(input())
A = set(input().split())

if N==len(A):
  print("YES")
else:
  print("NO") N = int(input()) N int(input()) int input() input A = set(input().split()) A set(input().split()) set input().split() ().split () input split if N==len(A):
  print("YES")
else:
  print("NO") N==len(A) N len(A) len A print("YES") print "YES" print("NO") print "NO" A = set(input().split()) set(input().split()) A N = int(input()) int(input()) N
N = int(input())
A = set(input().split())

if N==len(A):
  print("YES")
else:
  print("NO")