#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  int sign = 0;
  int a[205], b[205];
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < k; i++) {
    cin >> b[i];
  }
  sort(b, b + k);
  int i = k - 1;
  for (int j = 0; (j < n && i >= 0); j++) {
    if (a[j] == 0) {
      a[j] += b[i];
      i--;
    }
  }
  for (int i = 1; i < n; i++) {
    if (a[i] < a[i - 1]) {
      sign = 1;
      break;
    }
  }
  if (sign == 1) {
    cout << "Yes\n";
  } else
    cout << "No\n";
  return 0;
}
