#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+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKIGludCBtYWluKCkgewppbnQgYSwgYiwgYywgZDsKY2luID4+IGEgPj4gYiA+PiBjID4+IGQ7CmlmIChwb3coYSwgYikgPiBwb3coYywgZCkpIHsKY291dCA8PCAiWUVTIiA8PCBlbmRsOwogfSBlbHNlIHsKIGNvdXQgPDwgIk5PIiA8PCBlbmRsOwp9CgpyZXR1cm4gMDsKfSAKCg==