import java.util.*

fun main(argv : Array<String>){
    
    val scan = Scanner(System.`in`)
    
    //
    val str = scan.next()
    
    //
    for( i in str.indices){
        
        if(i>=str.indices.count()/2)
            break
        
        if( str[i] != str[str.length-1-i]){
            println("No")
            return
        }
    }
    print("Yes")
    
}

