#include <bits/stdc++.h>
int main() {
  int n, o, i, k, m;
  scanf("%d%d", &n, &o);
  scanf("%d%d", &k, &m);
  int a[n], b[o];
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  for (i = 0; i < o; i++) scanf("%d", &b[i]);
  if (a[k - 1] < b[o - m])
    printf("YES");
  else
    printf("NO");
  return 0;
}
