#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); double p, q; cin >> p >> q; if ((1 - p) * q < p * (1 - q) * q) cout << "YES" << endl; else cout << "NO" << endl; return 0; }