#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgQSwgQiwgQywgRDsKICAgIGNpbiA+PiBBID4+IEIgPj4gQyA+PiBEOwoKICAgIGlmIChwb3coQSwgQikgPiBwb3coQywgRCkpIHsKICAgICAgICBjb3V0IDw8ICJZRVMiIDw8IGVuZGw7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgIk5PIiA8PCBlbmRsOwogICAgfQoKcmV0dXJuIDA7Cn0=