#include using namespace std; int main(){ double p, q; cin >> p >> q; double P1 = (1 - p) * q; double P2= p * (1 - q) * q; if (P1 < P2){ cout << "YES" << endl; } else { cout << "NO" << endl; } }