#include int main(void){ double p,q; scanf("%lf%lf",&p,&q); if((1-p)*q < p*(1-q)*q){printf("YES\n");}else{printf("NO\n");} return 0; }