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