#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<int> b(k);
  for (int i = 0; i < k; ++i) cin >> b[i];
  sort(b.rbegin(), b.rend());
  for (int i = 0; i < n; ++i) {
    if (a[i] == 0) {
      a[i] = b[0];
      b.erase(b.begin());
    }
  }
  for (int i = 0; i < n - 1; ++i) {
    if (a[i + 1] <= a[i]) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
