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