n = int(input())
a = set(input().split())
if len(a) == n:
  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 len(a) == n:
  print("YES")
else:
  print("NO") len(a) == n len(a) len a n 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 len(a) == n:
  print("YES")
else:
  print("NO")