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