#include <bits/stdc++.h>
using namespace std;
const int maxn = 100;
const int maxm = 200;
int a[maxn + 5], b[maxn + 5], n, k;
int cnt[maxm + 5];
int main() {
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
  for (int i = 1; i <= k; ++i) scanf("%d", &b[i]);
  for (int i = 1; i <= n; ++i) cnt[a[i]] += 1;
  for (int i = 1; i <= k; ++i) cnt[b[i]] += 1;
  for (int i = 1; i <= maxm; ++i) {
    if (cnt[i] > 1) {
      printf("No\n");
      return 0;
    }
  }
  if (k > 1)
    printf("Yes\n");
  else {
    for (int i = 1; i <= n; ++i)
      if (a[i] == 0) a[i] = b[1];
    int ok = 1;
    for (int i = 1; i < n; ++i)
      if (a[i + 1] < a[i]) ok = 0;
    if (ok)
      printf("No\n");
    else
      printf("Yes\n");
  }
  return 0;
}
