s = input()
t = s[::-1]
u = ''
for i in range(len(s)):
  if t[i] == 'b':
    u += 'd'
  elif t[i] == 'd':
    u += 'b'
  elif t[i] == 'p':
    u += 'q'
  elif t[i] == 'q':
    u += 'p'
if s == u:
  print('Yes')
else:
  print('No')