S = input()
N = len(S)
S_ = ""
for i in range(N):
  S_ += S[N-1-i]
S_ = S_.replace("b","B")
S_ = S_.replace("d","b")
S_ = S_.replace("B","d")
S_ = S_.replace("p","P")
S_ = S_.replace("q","p")
S_ = S_.replace("P","q")
if S == S_:
  print("Yes")
else:
  print("No")