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