#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  int arr_a[101], arr_b[101];
  for (int i = 0; i < n; i++) scanf("%d", &arr_a[i]);
  for (int i = 0; i < k; i++) scanf("%d", &arr_b[i]);
  sort(arr_b, arr_b + k);
  int j = k - 1;
  for (int i = 0; i < n; i++)
    if (arr_a[i] == 0) arr_a[i] = arr_b[j--];
  int i = 0;
  bool flag = true;
  for (i = 0; i < n - 1; i++)
    if (arr_a[i] > arr_a[i + 1]) {
      flag = false;
      break;
    }
  if (flag == true)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
