import scala.io.StdIn object Problem159 { def proc(p: Double, q: Double): String = { val frontRev1 = p * (1 - q) * 0 val frontRev2 = p * (1 - q) * q val backRev1 = (1 - p) * q val backRev2 = (1 - p) * (1 - q) * 0 val p1 = frontRev1 + backRev1 val p2 = frontRev2 + backRev2 if (p1 < p2) "YES" else "NO" } def main(args: Array[String]) { val pq = StdIn.readLine().split(" ").map(_.toDouble) val result: String = proc(pq(0), pq(1)) println(result) } }