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