from collections import deque
d = {
        'b': 'd',
        'd': 'b',
        'p': 'q',
        'q': 'p'
        }
s = deque(input())
if len(s) % 2:
    print("No")
while len(s) > 1:
    l = s.popleft()
    r = s.pop()
    if r != d[l]:
        print("No")
        quit(0)
print("Yes")

