#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin.tie(0);
  int n1, n2, k, i, m, cnt(0);
  cin >> n1 >> n2 >> k >> m;
  int a[n1], b[n2];
  for (i = 1; i <= n1; i++) {
    cin >> a[i];
  }
  for (i = 1; i <= n2; i++) {
    cin >> b[i];
  }
  for (i = 1; i <= n2; i++) {
    if (b[i] > a[k]) cnt++;
  }
  if (cnt >= m)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
