import scala.io.StdIn.readLine import scala.collection.mutable.PriorityQueue import scala.annotation.tailrec // PriorityQueue[Long]()(scala.math.Ordering.Long.reverse) package net.pushl { package number { // Prime (Prime.scala) // Number (Number.scala) } package string { // RollingHash (RollingHash.scala) } package geometry { // Point // Segment // Line } object EnRich { implicit class AString(val self : String) extends AnyVal { def splitToIntVector = self.split(" ").map(_.toInt).toVector def splitToDoubleVector = self.split(" ").map(_.toDouble).toVector def splitToDoubleTuple2 = splitTuple2(() => splitToDoubleVector) def splitToIntTuple2 = splitTuple2(() => splitToIntVector) private def splitTuple2[X](splitTo: () => Vector[X]) = { val ab = splitTo() (ab(0),ab(1)) } } } } import net.pushl.EnRich._ object Main { def solve(p: Double, q: Double) = { val p1 = (1-p)*q val p2 = p*(1-q)*q if(p1 < p2) "YES" else "NO" } def main(args : Array[String]) : Unit = { val (p,q) = readLine.splitToDoubleTuple2 println(solve(p,q)) } }