from sys import stdin
ans = 'Yes'
di = {}
di['b'] = 1
di['d'] = -1
di['p'] = 2
di['q'] = -2
a = stdin.readline().strip()
l = len(a)
if l%2:
 ans = 'No'
else:
 for i in xrange(l/2):
  if di[a[i]] + di[a[l-1-i]]:
   ans = 'No'
print ans