#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n];
  vector<int> b(k);
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < k; i++) cin >> b[i];
  sort(b.rbegin(), b.rend());
  int kk = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] == 0) {
      a[i] = b[kk];
      kk++;
    }
  }
  int flag = 0;
  for (int i = 0; i < n - 1; i++)
    if (a[i] > a[i + 1]) {
      flag = 1;
      break;
    }
  if (flag)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
