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