#include <bits/stdc++.h>
using namespace std;
const int maxn = 100100;
int n, k;
int a[maxn];
int b[maxn];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < k; i++) cin >> b[i];
  sort(b, b + k);
  for (int j = k, i = 0; i < n; i++)
    if (!a[i]) a[i] = b[--j];
  for (int i = 1; i < n; i++)
    if (a[i] <= a[i - 1]) {
      cout << "Yes" << endl;
      return 0;
    }
  cout << "No" << endl;
  return 0;
}
