#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> a(n);
  vector<int> b(k);
  int mx = -300, mn = 300;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < k; ++i) {
    cin >> b[i];
    if (b[i] < mn) mn = b[i];
    if (b[i] > mx) mx = b[i];
  }
  sort(b.begin(), b.end());
  for (int i = 0; i < n; ++i) {
    if (a[i] == 0) {
      a[i] = b[k - 1];
      k--;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (i != n - 1 && a[i] > a[i + 1]) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
}
