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