p,q = gets.chomp.split(" ").map(&:to_f) if (1 - p) * q < p * (1 - q) * q puts "YES" else puts "NO" end