package usb; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String p = sc.next(); String q = sc.next(); System.out.println(solve(p,q) ? "YES" : "NO"); } public static boolean solve(String ps,String qs) { double p = Double.valueOf(ps); double q = Double.valueOf(qs); double p1 = (1 - p) * q; double p2 = p * (1 - q) * q; return p1 < p2; } }