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