#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input double p, q; cin >> p >> q; // Output double P1 = (1 - p) * q; double P2 = p * (1 - q) * q; cout << (P1 < P2 ? "YES" : "NO") << endl; }