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