#include<bits/stdc++.h>
using namespace std;
int main() {
	string s,s1;
	cin>>s;
	s1=reverse(s.begin(),s.end());
	for(int i=0; i<a.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 if(s[i]=='q') s[i]='p';
	}
	if(s==s1) {
		cout<<"Yes"<<endl;
	} else {
		cout<<"No"<<endl;
	}
}