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

int main(){
	string str;
	cin >> str;
	string tmp = str;
	reverse(tmp.begin(), tmp.end());
	for(int i = 0; i < tmp.length(); i++){
		if(tmp[i] == 'b')tmp[i] = 'd';
		else if(tmp[i] == 'd')tmp[i] = 'b';
		else if(tmp[i] == 'p')tmp[i] = 'q';
		else if(tmp[i] == 'q')tmp[i] = 'p';
	}
	if(str == tmp)cout << "Yes" << endl;
	else cout << "No" << endl;
} 
