#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); double p, q; cin >> p >> q; vector turn_succes_p(10); vector turn_succes_rp(10); //p turn_succes_p[0] = p * q; for (int i = 1; i < 10; ++i) { if (i % 2 == 0) { turn_succes_p[i] = turn_succes_p[i - 1] * (1 - q); } else { turn_succes_p[i] = turn_succes_p[i - 1] * 1; } } //(1 - p) turn_succes_rp[0] = (1 - p) ; for (int i = 1; i < 10; ++i) { if (i % 2 == 0) { turn_succes_rp[i] = turn_succes_rp[i - 1] * 1; } else { turn_succes_rp[i] = turn_succes_rp[i - 1] * (1 - q); } } double P1 = turn_succes_rp[1]; double P2 = turn_succes_p[2]; //cout << P1 << ' ' << P2 << endl; if (P1 < P2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }