#include<iostream>
#include<fstream>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
string a,b;
int main()
{
     cin>>a;
	 int len=a.size();
	 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,j=b.size-1;i<len,j>=0;i++,j--)
	 {
		 if(a[i]!=b[j]){flag=false;break;}
	 }
      if(flag==1) cout<<"Yes"<<endl;
	  else cout<<"No"<<endl;
    return 0;
}