#include <bits/stdc++.h>
using namespace std;
string reverse(string const &s) {
  string rev(s.rbegin(), s.rend());
  return rev;
}
int main() {
  string s, s1;
  cin >> s;
  s1 = reverse(s);
  int i;
  for (i = 0; i < s1.length(); i++) {
    if (s1[i] == 'b') {
      s1[i] = 'd';
    } else if (s1[i] == 'd') {
      s1[i] = 'b';
    } else if (s1[i] == 'p') {
      s1[i] = 'q';
    } else if (s1[i] == 'q') {
      s1[i] = 'p';
    }
  }
  if (s == s1) {
    cout << "yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
