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