#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  int n = s.size();
  for (register int i = 0; i <= n - 1; i++) {
    int j = n - 1 - i;
    if (((s[i] == 'b' && s[j] == 'd') || (s[i] == 'd' && s[j] == 'b') ||
         (s[i] == 'q' && s[i] == 'p') || (s[i] == 'p' && s[j] == 'q')) ||
        (s[i] == s[j]))
      continue;
    else {
      cout << "No" << endl;
      exit(0);
    }
  }
  cout << "Yes" << endl;
  return 0;
}
