#include<iostream>
using namespace std;
int main()
{
	cin>>s;
	string s1=s;
	int n=s.length();
	for(int i=0;i<n/2;++i)
	{	
		if(s1[i]=='b')s1[i]=='d';
		if(s1[i]=='d')s1[i]=='b';
		if(s1[i]=='q')s1[i]=='p';
		if(s1[i]=='p')s1[i]=='q';
		if(s1[n-i-1]=='b')s1[n-i-1]=='d';
		if(s1[n-i-1]=='d')s1[n-i-1]=='b';
		if(s1[n-i-1]=='q')s1[n-i-1]=='p';
		if(s1[n-i-1]=='p')s1[n-i-1]=='q';
		char t=s1[i];s1[i]=s1[n-i-1];s1[n-i-1]=t;
	}
	if(s1==s)cout<<"Yes";
	else cout<<"No";
	return 0;
}
