#include <bits/stdc++.h>
using namespace std;
void Arrays() {
  int Na, Nb, k, m;
  cin >> Na >> Nb;
  cin >> k >> m;
  int *a = new int[Na];
  int *b = new int[Nb];
  for (int i = 0; i < Na; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < Nb; i++) {
    cin >> b[i];
  }
  if (a[k - 1] < b[Nb - m])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  delete[] a;
  delete[] b;
}
int main() {
  Arrays();
  return 0;
}
