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