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