#include #define PI 3.14159265359 #define NIL -1 using namespace std; const int64_t MOD = 1e9 + 7; int main() { double p, q; cin >> p >> q; double P1, P2; P1 = (1 - p) * q; P2 = p * (1 - q) * q; if (P1 < P2) { cout << "YES" << endl; } else { cout << "NO" << endl; } }