#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, i;
  cin >> n >> k;
  long long int a[105], b[105];
  long long int isin = 1, prev = -1, pos;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] != 0) {
      if (a[i] < prev) {
        isin = 0;
        break;
      } else
        prev = a[i];
    } else
      pos = i;
  }
  for (i = 0; i < k; i++) {
    cin >> b[i];
  }
  if (k > 1) {
    cout << "Yes" << '\n';
    return 0;
  }
  if (isin == 0) {
    cout << "Yes" << '\n';
  } else {
    long long int l = -1, r = 1000000;
    if (pos != 0) l = a[pos - 1];
    if (pos != n - 1) r = a[pos + 1];
    if (b[0] > l && b[0] < r)
      cout << "No" << '\n';
    else {
      cout << "Yes" << '\n';
    }
  }
  return 0;
}
