#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, j = 0;
  cin >> n >> k;
  vector<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.begin(), b.end(), greater<int>());
  for (int i = 0; i < n; i++) {
    if (a[i] == 0) {
      a[i] = b[j];
      j++;
    }
  }
  j = 0;
  for (int i = 1; i < a.size(); i++) {
    if (a[i - 1] < a[i]) {
      j++;
    }
  }
  set<int> s(a.begin(), a.end());
  if (s.size() != a.size() || a.size() - 1 == j) {
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
