import java.util.*; class y159 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float p=sc.nextFloat(), q=sc.nextFloat(); System.out.println(((1-p)*q)<(p*(1-q)*p)?"YES":"NO"); sc.close(); } }