#include <bits/stdc++.h>
using namespace std;
long long ar[102], s[102];
int main() {
  long long n, m;
  cin >> n >> m;
  for (long long i = 0; i < n; i++) cin >> ar[i];
  for (long long i = 0; i < m; i++) cin >> s[i];
  sort(s, s + m);
  long long ind = m - 1;
  for (long long i = 0; i < n; i++)
    if (ar[i] == 0) {
      ar[i] = s[ind--];
    }
  bool fl = false;
  for (long long i = 1; i < n; i++)
    if (ar[i] <= ar[i - 1]) fl = true;
  if (fl == true)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
