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