import java.util.Scanner

object Main {
  def main(args:Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextLine()

    if (n == n.reverse) {
      println("Yes")
    } else {
      println("No")
    }
  }
}