#include <bits/stdc++.h> #define p(s) cout<<(s)<<endl using namespace std; int main(){ double p,q; cin>>p>>q; double P1=(1-p)*q; double P2=p*(1-q)*q; p(P1<P2?"YES":"NO"); return 0; }