#include<iostream>
#include<cstring>
using namespace std;
string s;
int n,i,j;
int main()
{
	cin>>s;
	n=s.size();
	for(i=0,j=s.size()-1;i++,j--;i<=s.size(),j>=s.size())
	{	
		if((s[i]=='b'&&s[j]!='d')||(s[i]=='p'&&s[j]!='q')||(s[i]=='d'&&s[j]!='b')||(s[i]=='q'&&s[j]!='p'))
		{
			cout<<"No"<<endl;
			return 0;
		}
	}
	cout<<"Yes"<<endl;
	return 0;
}