import java.io.InputStreamReader
import java.io.BufferedReader

fun main(args: Array<String>) {
  val br = BufferedReader(InputStreamReader(System.`in`))
  val n = br.readLine()
  val ans = if(n!!.first() == n.last()) "Yes" else "No"
  println(ans)
}