main :: IO ()
main = do
  s <- getLine
  putStrLn $ if solve s
             then "Yes"
             else "No"

solve s = s == map f (reverse s)
  where
    f 'b' = 'd'
    f 'd' = 'b'
    f 'p' = 'q'
    f 'q' = 'p'
    f a   = a
