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