def transform(s):
    s = s[::-1]
    s = s.replace('b', '0').replace('d', 'b').replace('0', 'd')
    s = s.replace('p', '0').replace('q', 'p').replace('0', 'q')
    return s

s = input()
if s == transform(s):
    print('Yes')
else:
    print('No')   