let s = read_line ()
let f s = String.(init (length s) @@ fun i -> s.[length s - i - 1])
let _ = print_endline @@ if s = String.map (function 'b' -> 'd' | 'd' -> 'b' | 'p' -> 'q' | 'q' -> 'p' | c -> c) @@ f s then "Yes" else "No"