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

b = [-1] + a

l = []
for i in range(n):
  l.append(a[i] - b[i])
  
if l.count(0) == 0:
  print('YES')
else:
  print('NO') n = int(input()) n int(input()) int input() input a = sorted(list(map(int, input().split()))) a sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b = [-1] + a b [-1] + a [-1] -1 a l = [] l [] for i in range(n):
  l.append(a[i] - b[i])
   i range(n) range n l.append(a[i] - b[i]) l.append l append a[i] - b[i] a[i] a i b[i] b i if l.count(0) == 0:
  print('YES')
else:
  print('NO') l.count(0) == 0 l.count(0) l.count l count 0 0 print('YES') print 'YES' print('NO') print 'NO' l = [] [] l a = sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) a b = [-1] + a [-1] + a b n = int(input()) int(input()) n
n = int(input())
a = sorted(list(map(int, input().split())))

b = [-1] + a

l = []
for i in range(n):
  l.append(a[i] - b[i])
  
if l.count(0) == 0:
  print('YES')
else:
  print('NO')