s=list(input())
n=len(s)
if n%2==1:
    print('No')
else:
    k=n//2
    for i in range(k):
        if s[i]=='b' and not s[n-1-i]=='d':
            print('No')
            exit()
        if s[i]=='d' and not s[n-i-1]=='b':
            print('No')
            exit()   
        if s[i]=='p' and not s[n-1-i]=='q':
            print('No')
            exit()
        if s[i]=='q' and not s[n-i-1]=='p':
            print('No')
            exit() 
    print('Yes')
        