#include <bits/stdc++.h>
int a[200], b[200];
int main() {
  int n, k, i, j, count = 0, p = 0;
  scanf("%d%d", &n, &k);
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  for (i = 0; i < k; i++) scanf("%d", &b[i]);
  for (i = 0; i < n; i++)
    if (a[i] == 0) count++;
  if (count >= k) {
    if (k == 1) {
      for (i = 0, j = 0; i < n; i++)
        if (a[i] == 0) a[i] = b[j++];
      for (i = 0, j = 0; i < n - 1; i++)
        if (a[i] > a[i + 1]) {
          p = 1;
          break;
        }
      if (p)
        printf("Yes\n");
      else
        printf("No\n");
    } else
      printf("Yes\n");
  } else
    printf("No\n");
}
