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