local s = io.read()
local n = #s
local a = {}
a.b, a.d, a.p, a.q = "d", "b", "q", "p"
if n % 2 == 1 then
  print("No")
else
  local r = true
  for i = 1, n // 2 do
    if a[s:sub(i, i)] ~= s:sub(n + 1 - i, n + 1 - i) then
      r = false
      break
    end
  end
  print(r and "Yes" or "No")
end
