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