#include <bits/stdc++.h>
using namespace std;
void vout(vector<int> v) {
  cout << "v :  ";
  for (auto i : v) cout << i << " ";
  cout << endl;
}
long long n, k, tmp, alak;
vector<int> v;
vector<int> vv;
int main() {
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    v.push_back(tmp);
    if (tmp == 0) alak = i;
  }
  for (int i = 0; i < k; i++) {
    cin >> tmp;
    vv.push_back(tmp);
  }
  if (k > 1) {
    cout << "YES";
    return 0;
  }
  for (auto i : v) {
    if (i == 0) {
      i = vv[0];
    }
  }
  v[alak] = vv[0];
  vector<int> vvv = v;
  sort(vvv.begin(), vvv.end());
  if (vvv == v)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
