fun main (args:Array<String>){
    val palindRome = readLine()!!
    val palindRomeLen = palindRome.length
    val left = palindRome.take((palindRomeLen-1)/2)
    val right = palindRome.takeLast((palindRomeLen-1)/2)
    if(left == right) print("Yes")
    else print("No")
}