S=input()
if len(S)&1:
  print("No")
  exit(0)
revS=S[::-1]
pairs={"p":"q","b":"d"}
for i in range(len(S)//2):
  if S[i] in pairs and pairs[S[i]]==revS[i]:
    continue
  elif revS[i] in pairs and pairs[revS[i]]==S[i]:
    continue
  else:
    print("No")
    break
else:
  print("Yes")
