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