#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;

  string t = s;
  reverse(t.begin(), t.end());
  for (int i = 0; i < t.size(); ++i) {
    if (t[i] == 'b')
      t[i] = 'd';
    else if (t[i] == 'd')
      t[i] = 'b';
    else if (t[i] == 'p')
      t[i] = 'q';
    else
      t[i] = 'p';
  }

  cout << (s == t ? "Yes" : "No") << endl;
}
