#include <bits/stdc++.h>
using namespace std;
int main() {
  int i;
  string s1, s2;
  cin >> s1;
  s2 = s1;
  reverse(s1.begin(), s1.end());
  for (i = 0; i < 4; i++) {
    if (s1[i] == 'b')
      s1[i] = 'd';
    else if (s1[i] == 'd')
      s1[i] = 'b';
    else if (s1[i] == 'q')
      s1[i] = 'p';
    else if (s1[i] == 'p')
      s1[i] = 'q';
    if (s1[i] != s2[i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
