#include <bits/stdc++.h>
using namespace std;
string s, chk;
int main() {
  cin >> s;
  for (int i = 0; i < s.size(); ++i) chk[i] = s[i];
  for (int i = 0; i < s.size() / 2; ++i) swap(s[i], s[s.size() - 1 - i]);
  for (int i = 0; i < s.size(); ++i) switch (s[i]) {
      case 'b':
        s[i] = 'd';
        break;
      case 'd':
        s[i] = 'b';
        break;
      case 'p':
        s[i] = 'q';
        break;
      case 'q':
        s[i] = 'p';
        break;
    }
  for (int i = 0; i < s.size(); ++i)
    if (s[i] != chk[i]) {
      printf("No\n");
      return 0;
    }
  printf("Yes\n");
  return 0;
}
