P, Q = gets.chomp.split(" ").map(&:to_f); p1 = (1 - P) * Q p2 = P * (1 - Q) * Q if p1 < p2 then puts("YES") else puts("NO") end