#include <iostream>
#include <string>
using namespace std;

char m[128];

int main() {
	string s;
	cin >> s;
	int l = s.length();
	if (l % 2 == 1) {
		cout << "No" << endl;
		return 0;
	}

	m['b'] = 'd'; m['d'] = 'b'; m['p'] = 'q'; m['q'] = 'p';
	for (int i = 0; i < l / 2; i++) {
		if (m[s[i]] != s[l - 1 - i]) {
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0;
}
