#include using namespace std; const int64_t MOD = 1e9 + 7; 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; return 0; }