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