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

solve s = let s' = reverse s
          in all id $ zipWith eq' s s'
  where
    eq' 'b' 'd' = True
    eq' 'p' 'q' = True
    eq' 'd' 'b' = True
    eq' 'q' 'p' = True
    eq' a b     = a == b
