#include #include using namespace std; int main() { string str; string arr[2]; getline(cin, str); stringstream ssin(str); int i = 0; while (i < 2) { ssin >> arr[i]; ++i; } float p = stof(arr[0]); float q = stof(arr[1]); float p1 = (1-p) * q; float p2 = p * (1-q) * q; if (p1 < p2) { cout << "YES" << endl; } else { cout << "NO" << endl; } }