#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n, k, t, pre = 0, buf = INT_MAX, bef = 0;
  cin >> n >> k;
  bool flag = false, fz = false;
  for (int i = 0; i < n; i++) {
    cin >> t;
    if (fz) {
      fz = false;
      buf = t;
    }
    if (k == 1 && !t) fz = true, bef = pre;
    if (!t) continue;
    if (i && t < pre) flag = true;
    pre = t;
  }
  if (k == 1) cin >> n;
  if (flag || k > 1 || (k == 1 && (n > buf || n < bef)))
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
