#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ull = unsigned long long; using ll = long long; int main() { double p,q; cin >> p >> q; double result1 = 0; double result2 = 0; result1 = (1-p)*q; result2 = p*(1-q)*q; if(result1 < result2) { cout << "YES" << endl; } else { cout << "NO" << endl; } }