package Yukicoder /** * Created by hichikawa on 2015/11/12. */ fun main(args: Array) { fun readLineLongArray() : List { val str = readLine() as String val arrStr = str.split(" ") val ret = arrStr.map { it.toLong() } return ret } fun readLineLong() : Long { val str = readLine() as String return str.toLong() } fun readLineInt() : Int { val str = readLine() as String return str.toInt() } fun readLineDoubleArray() : List { val str = readLine() as String val arrStr = str.split(" ") val ret = arrStr.map { it.toDouble() } return ret } fun readLineStringArray() : List { val str = readLine() as String val arrStr = str.split(" ") return arrStr } val inputArrDouble = readLineDoubleArray() val p1 = (1-inputArrDouble[0]) * inputArrDouble[1] val p2 = inputArrDouble[0] * (1-inputArrDouble[1]) * inputArrDouble[1] if (p1 < p2) { println("YES") } else { println("NO") } }