import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double p = scan.nextDouble(); double q = scan.nextDouble(); scan.close(); if((1 - p) * q < p * (1 - q) * q) { System.out.println("YES"); }else { System.out.println("NO"); } } }