#include<iostream>
#include<fstream>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
char a[2000000],b[2000000],a1=0;
int main()
{
	while(cin>>a[i]&&a[i]!=EOF) a1++;
     int len=a1;
     for(int i=0;i<len;i++)
     {
         if(a[i]=='b')b[i]='d';
         if(a[i]=='d')b[i]='b';
         if(a[i]=='p')b[i]='q';
         if(a[i]=='q')b[i]='p';
     }
     bool flag=true;
     for(int i=0;i<len;i++)
     {
         if(a[i]!=b[len-i-1]){flag=false;break;}
     }
      if(flag==1) cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
    return 0;
}