#include<bits/stdc++.h>
using namespace std;
int main(){
    string aaa;
    cin>>aaa;
    string b=aaa;
    reverse(aaa.begin(),aaa.end());
    for(int i=0;i<aaa.size();++i)
    {
        if(aaa[i]=='b') aaa[i]='d';
        else if(aaa[i]=='d') aaa[i]='b';
        else if(aaa[i]=='p') aaa[i]='q';
        else if(aaa[i]=='q') aaa[i]='p';
    }
    if(aaa==b) cout<<"Yes";
    else cout<<"No";
}