#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  bool flag = true;
  for (int i = 0; i < s.size(); i++) {
    int j = s.size() - i - 1;
    if (i != j) {
      if (s[i] != s[j]) {
        char c1 = s[i], c2 = s[j];
        if (c1 > c2) swap(c1, c2);
        if ((c1 == 'b' && c2 == 'd') || (c1 == 'p' && c2 == 'q')) continue;
        flag = false;
      }
    }
  }
  cout << (flag ? "Yes" : "No") << endl;
  return 0;
}
