#include <bits/stdc++.h>
using namespace std;
int main() {
  bool pos = 1;
  string s;
  cin >> s;
  for (int i = 0; i < s.size() / 2; i++) {
    if (s[i] == 'b' && s[s.size() - i - 1] != 'd') {
      cout << "No";
      return 0;
    }
    if (s[i] == 'd' && s[s.size() - i - 1] != 'b') {
      cout << "No";
      return 0;
    }
    if (s[i] == 'p' && s[s.size() - i - 1] != 'q') {
      cout << "No";
      return 0;
    }
    if (s[i] == 'q' && s[s.size() - i - 1] != 'p') {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
}
