#include using namespace std; typedef long long ll; const ll 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; }