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