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