using System; using System.Collections.Generic; class program { public static void Main() { var str = Console.ReadLine().Split(' '); var p = double.Parse(str[0]); var q = double.Parse(str[1]); var P_1 = (1.0 - p) * q; var P_2 = (1.0 - q) * p * q; if (P_1 < P_2) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } }