class Calc0159 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @p, @q = args.shift.map(&:to_f) end def calc (1 - @p) * @q < @p * (1 - @q) * @q end def run calc ? 'YES' : 'NO' end end puts Calc0159.new(STDIN.readlines).run if __FILE__ == $0