#include <bits/stdc++.h>
using namespace std;
int a[105];
int b[105];
int main() {
  int n, k;
  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]);
  }
  if (k >= 2) {
    printf("Yes\n");
    return 0;
  } else {
    for (int i = 1; i <= n; i++) {
      if (a[i] == 0) {
        a[i] = b[1];
        break;
      }
    }
    int las = -0x3f3f3f3f;
    for (int i = 1; i <= n; i++) {
      if (a[i] < las) {
        printf("Yes\n");
        return 0;
      }
      las = a[i];
    }
    printf("No\n");
    return 0;
  }
}
