#include <bits/stdc++.h>
using namespace std;
int n1, n2;
int k, m;
int a[100010];
int b[100010];
int main() {
  while (~scanf("%d%d", &n1, &n2)) {
    scanf("%d%d", &k, &m);
    for (int i = 1; i <= n1; i++) scanf("%d", &a[i]);
    for (int i = 1; i <= n2; i++) scanf("%d", &b[i]);
    if (a[k] < b[n2 - m + 1])
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
