#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265359;
const double E = 2.718281828459;
const long long int MOD = 1000000007;
int A[100002], B[100002];
int main() {
  int na, nb;
  cin >> na >> nb;
  int m, k;
  cin >> k >> m;
  for (int i = 0; i < na; ++i) cin >> A[i];
  for (int i = 0; i < nb; ++i) cin >> B[i];
  int cont = 0;
  for (int i = 0; i < nb; ++i) {
    if (B[i] > A[k - 1]) cont++;
  }
  if (cont >= m)
    puts("YES");
  else
    puts("NO");
  return 0;
}
