#include int main() { float p, q; std::cin >> p >> q; float p1, p2; p1 = (1 - p) * q; p2 = p * q; std::cout << ((p1 < p2)? "YES":"NO") << std::endl; return 0; }