#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, k, a[205], b[205];
  cin >> n >> k;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int j = 1; j <= k; j++) cin >> b[j];
  if (k >= 2) {
    cout << "Yes" << endl;
    return 0;
  }
  if (a[1] == 0) a[1] = b[1];
  for (int i = 2; i <= n; i++) {
    if (a[i] == 0) a[i] = b[1];
    if (a[i] <= a[i - 1]) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
