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