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