#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, r, len;
  string s;
  cin >> s;
  len = s.length();
  l = 0, r = len - 1;
  while (l < r) {
    if (s[l] != s[r] && (s[l] != 'p' && s[r] != 'q') &&
        (s[l] != 'q' && s[r] != 'p') && (s[l] != 'd' && s[r] != 'b') &&
        (s[l] != 'b' && s[r] != 'd')) {
      cout << "No" << endl;
      return 0;
    }
    l++;
    r--;
  }
  cout << "Yes" << endl;
  return 0;
}
