#include <bits/stdc++.h>
using namespace std;
int i, j, k, m, n;
string s, s1;
int main() {
  getline(cin, s);
  int len = s.size();
  for (i = len - 1; i >= 0; i--) {
    s1[abs(i - len + 1)] = s[i];
  }
  for (i = 0; i < len; 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';
  }
  for (i = 0; i < len; i++) {
    if (s[i] != s1[i]) {
      puts("NO");
      return 0;
    }
  }
  puts("YES");
  return 0;
}
