#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, i, n, s;
  vector<int> va, vb;
  cin >> a >> b >> i >> n;
  for (int p = 0; p < a; p++) {
    cin >> s;
    va.push_back(s);
  }
  for (int p = 0; p < b; p++) {
    cin >> s;
    vb.push_back(s);
  }
  if (va[i - 1] >= vb[b - 1 - n + 1]) {
    cout << "NO";
  } else {
    cout << "YES";
  }
  return 0;
}
