#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k, c;
  cin >> n >> m >> k >> c;
  long long a[n + 1], b[m + 1];
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= m; i++) cin >> b[i];
  long long d = (m + 1) - c;
  if (b[d] > a[k])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
