import java.io.*; import java.util.*; class Main159 { public static void out (Object out) { System.out.println(out); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); double p = Double.parseDouble(line[0]); double q = Double.parseDouble(line[1]); System.out.println(1 - p < p * (1 - q) ? "YES" : "NO"); } }