let s = read_line ()
let rec f s n i =
  if i >= n/2 then true else if s.[i] <> s.[n-i-1] then false
  else f s n (i+1)
let n = String.length s
let ans = if f s n 0 && f s ((n-1) / 2) 0 then "Yes" else "No"
let () = print_endline ans