from collections import deque
mirrors = ["b","p","q","d"]
ans = True
S = list(raw_input())
if len(S) % 2 == 1:
  ans = False
else:
  for i in range(len(S)/2):
    if not(3-mirrors.index(S[i]) == mirrors.index(S[-(i+1)])):
      ans = False
      break
print "Yes" if ans else "No"

