def mirror(a,b):
  S=set()
  S.add(a)
  S.add(b)
  T=list(S)
  T.sort()
  if T[0]=="b" and T[1]=="d":
    return True
  elif T[0]=="p" and T[1]=="q":
    return True
  else:
    return False
St=input()
N=len(St)
for i in range(N):
  if not(mirror(St[i],St[N-i-1])):
    print("No")
    exit()
print("Yes")
