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