#include using namespace std; int main(){ double p,q; cin >> p >> q; double P1 = (1-p) * 1.0 * q; double P2 = p * (1-q) * 1.0 * q; if( P1 < P2 ){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }