#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
	cin>>s;
	string s1=reverse(s.begin(),s.end());
	for(interestingi;i<s.length();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";
	else cout<<"No"; 
} 