#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n];
  int b[k];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < k; i++) {
    cin >> b[i];
  }
  if (k > 1) {
    cout << "Yes" << endl;
  } else {
    int left, right, sum = 0;
    int c[n - 1], j = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] != 0) {
        c[j] = a[i];
        j++;
      }
    }
    for (int i = 1; i < n - 1; i++) {
      if (c[i] > c[i - 1]) {
        sum++;
      }
    }
    for (int i = 0; i < n; i++) {
      if (a[i] == 0) {
        if (i == 0) {
          right = a[i + 1];
          left = 0;
        } else if (i == (n - 1)) {
          right = 300;
          left = a[i - 1];
        } else {
          left = a[i - 1];
          right = a[i + 1];
        }
        break;
      }
    }
    if ((b[0] > left && b[0] < right) && sum == (n - 2)) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
}
