#include using namespace std; struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main() { double p, q; cin >> p >> q; cout << ( ( 1 - p ) * q < p * ( 1 - q ) * q ? "YES" : "NO" ) << endl; return 0; }