p, q = gets.chomp.split.map(&:to_f) puts ( 1 - p ) * q < p * ( 1 - q ) * q ? 'YES' : 'NO'