#include <bits/stdc++.h>   using namespace std;   int a, b, k, m, maxa, minb, tem;   int main() {     cin >> a >> b >> k >> m;     for (int i = 0; i < a; i++) {       cin >> tem;       if (i == k - 1) maxa = tem;     }     for (int i = 0; i < b; i++) {       cin >> tem;       if (i == b - m) minb = tem;     }     cout << (maxa < minb ?  YES  :  NO ) << endl;   }   