#include <bits/stdc++.h>
using namespace std;
bool acompare(int lhs, int rhs) { return lhs > rhs; }
struct t {
  int a, pos;
};
int b[1000];
struct t aa[1000];
int main() {
  int i, j, k, l, m, n;
  vector<int> a;
  string s, s1, s2, s3, s4;
  cin >> n;
  cin >> k;
  for (i = 0; i < n; i++) cin >> m, a.push_back(m);
  for (i = 0; i < k; i++) cin >> b[i];
  sort(b, b + 1000, acompare);
  j = 0;
  for (i = 0; i < n; i++) {
    if (a[i] == 0) a[i] = b[j++];
  }
  for (i = 0; i < n - 1; i++)
    if (a[i] > a[i + 1]) {
      cout << "Yes";
      return 0;
    }
  cout << "No";
  return 0;
}
