fun main(args: Array) { println(if(getAns()) "YES" else "NO") } fun getAns():Boolean { val (a,b,c,d) = readLine()!!.split(" ").map { it.toInt() } return a < b && c > d }