#include int main(void) { float p, q; float p1, p2; scanf("%f %f", &p, &q); p1 = (1-p)*q; p2 = p*(1-q)*q; printf("%s", (p1 < p2)? "YES":"NO"); return 0; }