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