import Foundation

/*
// 1
let N = Int(readLine()!)!

// 1 2
let split = readLine()!.componentsSeparatedByString(" ")
let N = Int(split[0])!
let S = Int(split[1])!

// 1 2 3 4 5
let array = readLine()!.componentsSeparatedByString(" ").map { Int($0)! }
*/

let S = readLine()!
let length = S.characters.count
let front = S.endIndex.advancedBy(-length / 2 - 1)
let back = S.startIndex.advancedBy(length / 2 + 1)

print(S.substringToIndex(front), S.substringFromIndex(back))
if S.substringToIndex(front) == S.substringFromIndex(back) {
  print("Yes")
} else {
  print("No")
}