s = list(input())
t = s[::-1]
for i, k in enumerate(t):
  if k == "b":
    t[i] = "d"
  elif k == "d":
    t[i] = "b"
  elif k == "p":
    t[i] = "q"
  elif k == "q":
    t[i] = "p"
if s == t:
  print("Yes")
else:
  print("No")