#include <bits/stdc++.h>
using namespace std;
int a[100005], x, y, k;
int main() {
  ios_base::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == 0) {
      x = i;
      k++;
    }
  }
  if (k > 1) {
    cout << "Yes" << endl;
    return 0;
  }
  for (int i = 1; i <= m; i++) {
    cin >> y;
  }
  a[x] = y;
  for (int i = 1; i < n; i++) {
    if (a[i] > a[i + 1]) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
