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