#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int A, B, C, D;
    cin >> A >> B >> C >> D;

    if (pow(A, B) > pow(C, D)) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }

return 0;
}