n = int(input())
tmp = input().split()
a = []
for i in range(n):
  a.append(int(tmp[i]))

a.sort()

for i in range(n-1):
  x = a[i]
  y = a[i+1]
  if(x == y):
    print("NO")
    exit()

print("YES") n = int(input()) n int(input()) int input() input tmp = input().split() tmp input().split() ().split () input split a = [] a [] for i in range(n):
  a.append(int(tmp[i])) i range(n) range n a.append(int(tmp[i])) a.append a append int(tmp[i]) int tmp[i] tmp i a.sort() a.sort a sort for i in range(n-1):
  x = a[i]
  y = a[i+1]
  if(x == y):
    print("NO")
    exit() i range(n-1) range n-1 n 1 x = a[i] x a[i] a i y = a[i+1] y a[i+1] a i+1 i 1 if(x == y):
    print("NO")
    exit() x == y x y print("NO") print "NO" exit() exit print("YES") print "YES" tmp = input().split() input().split() tmp x = a[i] a[i] x a = [] [] a n = int(input()) int(input()) n y = a[i+1] a[i+1] y
n = int(input())
tmp = input().split()
a = []
for i in range(n):
  a.append(int(tmp[i]))

a.sort()

for i in range(n-1):
  x = a[i]
  y = a[i+1]
  if(x == y):
    print("NO")
    exit()

print("YES")