#include<bits/stdc++.h>
using namespace std;

int main(){
	string a,b;
	cin>>a;
	b=a;
	reverse(a.begin(),a.end());
	for(int i=0;i<b.size();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(a==b)cout<<"Yes";
	else cout<<"No";
//	main();
	return 0;
}