#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k, na, nb, m, p1, p2;
  cin >> na >> nb;
  cin >> k >> m;
  for (i = 1; i <= na; i++) {
    cin >> j;
    if (i == k) p1 = j;
  }
  n = nb - m + 1;
  for (i = 1; i <= nb; i++) {
    cin >> j;
    if (i == n) p2 = j;
  }
  if (p2 > p1)
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0;
}
