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