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