#include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>

int main() {
  double p, q;
  double p1, p2;
  
  std::cin >> p >> q;

  p1 = (1-p)*q;

  p2 = p*q*(1-q); 

  if( p1 < p2) {
    std::cout << "YES" << std::endl;
  }
  else {
    std::cout << "NO" << std::endl;
  }
  
  return 0;
}