#include <bits/stdc++.h>
using namespace std;
int n, k, arr[200], l;
int main() {
  cin >> n >> k;
  if (k > 1) {
    cout << "Yes";
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    if (arr[i] == 0) k = i;
  }
  cin >> arr[k];
  for (int i = 1; i < n; ++i)
    if (arr[i] <= arr[i - 1]) l = 1;
  cout << (l ? "Yes" : "No");
}
