n = int(input())
a = list(map(int, input().split()))
d = set()
for x in a:
  if x in d:
    print("NO")
    quit()
  d.add(x)
print("YES") n = int(input()) n int(input()) int input() input a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d = set() d set() set for x in a:
  if x in d:
    print("NO")
    quit()
  d.add(x) x a if x in d:
    print("NO")
    quit()
   x in d x d print("NO") print "NO" quit() quit d.add(x) d.add d add x print("YES") print "YES" d = set() set() d n = int(input()) int(input()) n a = list(map(int, input().split())) list(map(int, input().split())) a
n = int(input())
a = list(map(int, input().split()))
d = set()
for x in a:
  if x in d:
    print("NO")
    quit()
  d.add(x)
print("YES")
