fun main(args: Array<String>) {
    println(if (readLine()!!.isPalindromic()) "Yes" else "No")
}

fun String.isPalindromic() : Boolean =
        (0 until length/2).none { this[it] != this[lastIndex - it] }