#include <bits/stdc++.h>
using namespace std;
template <typename T, typename T1>
T amax(T a, T1 b) {
  if (b > a) a = b;
  return a;
}
template <typename T, typename T1>
T amin(T a, T1 b) {
  if (b < a) a = b;
  return a;
}
template <typename T>
T amod(T a) {
  if (a < 0) a = -a;
  return a;
}
void solve() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int n, p, a;
  cin >> n >> p;
  long long int k, m;
  cin >> k >> m;
  long long int mark = -1;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    if (i == k - 1) {
      mark = a;
    }
  }
  for (long long int i = 0; i < p; i++) {
    cin >> a;
    if (a > mark) {
      if (p - i >= m) {
        cout << "YES";
      } else {
        cout << "NO";
      }
      return;
    }
  }
  cout << "NO";
}
int main() {
  long long int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
