#include <bits/stdc++.h>
using namespace std;
bool vis[205];
int main() {
  int n, k;
  cin >> n >> k;
  int arr1[n];
  int arr2[k];
  for (int i = 0; i < n; i++) {
    cin >> arr1[i];
  }
  for (int i = 0; i < k; i++) {
    cin >> arr2[i];
  }
  sort(arr2, arr2 + k);
  for (int i = 0; i < n; i++) {
    if (!arr1[i]) {
      arr1[i] = arr2[--k];
    }
  }
  bool b = 0;
  for (int i = 0; i < n - 1; i++) {
    if (arr1[i] > arr1[i + 1]) {
      b = 1;
    }
  }
  if (b) {
    puts("Yes");
  } else {
    puts("No");
  }
}
