#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, A[100], B[100];
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> A[i];
  for (int i = 0; i < k; i++) cin >> B[i];
  if (k > 1) {
    cout << "Yes\n";
    return 0;
  }
  for (int i = 0; i < n; i++)
    if (!A[i]) A[i] = B[0];
  for (int i = 1; i < n; i++)
    if (A[i] < A[i - 1]) {
      cout << "Yes\n";
      return 0;
    }
  cout << "No\n";
  return 0;
}
