s=input()
if len(s)%2==0:
    for i in range(len(s)):
        if s[i]=='p' and s[-1-i]!='q' or s[i]=='q' and s[-1-i]!='p' or s[i]=='d' and s[-1-i]!='b' or s[i]=='b' and s[-1-i]!='d':
                print('No')
                break
    else:
        print('Yes')
else:
    print('No')
