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