#include #define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++) const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); double p, q; cin >> p >> q; double P1, P2; P1 = (1-p)*q; P2 = p*(1-q)*q; if (P1 < P2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }