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