#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int na, nb, k, m, n = 0;
  cin >> na >> nb >> k >> m;
  int a[na], b[nb];
  for (int i = 0; i < na; i++) cin >> a[i];
  for (int i = 0; i < nb; i++) cin >> b[i];
  for (int i = 0; i < nb; i++)
    if (b[i] > a[k - 1]) n++;
  if (n >= m)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
