import scala.io.StdIn

object Main {

  def main(args: Array[String]): Unit = {
    val original = StdIn.readLine.split(" ").toList

    if (original.sorted == original) println("Yes") else println("No")
  }
}