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