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