import scala.io.StdIn.readLine
import java.lang.StringBuilder

object Main {
    def main(args: Array[String]){
        val x = readLine
        val y = new StringBuilder(x).reverse.toString
        if (x == y) println("Yes") else println("No")
    }
}
