#include <bits/stdc++.h>
using namespace std;
int a[300], b[200];
int main() {
  int n, k;
  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);
  int counter = k - 1;
  for (int i = 0; i < n; i++)
    if (!a[i]) {
      a[i] = b[counter--];
    }
  bool si = false;
  for (int i = 0; i < n - 1; i++)
    if (a[i] > a[i + 1]) si = true;
  if (si)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
