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