#include using namespace std; int main(void) { float p, q; cin >> p >> q; if ((1 - p)*q < p*q*(1 - q))cout << "YES"; else cout << "NO"; return 0; }