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