import Foundation

let line: String = readLine()!
var length = (line.characters.count-1)/2
let a = line.substringToIndex(line.startIndex.advancedBy(length))
var b = line.substringFromIndex(line.endIndex.advancedBy(-length))
if a == b {
    print("Yes")
}else{
    print("No")
}