import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); double p = in.nextDouble(); double q = in.nextDouble(); double a1 = 0.0, a2 = 0.0; // P1とP2 a1 = (1.0 - p) * q; a2 = p * (1.0 - q) * q; if(a1 < a2) System.out.println("YES"); else System.out.println("NO"); in.close(); } }