#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int main() {
  cin >> s1;
  s1 = s2;
  for (register int i = 0; i < s2.size(); i++) s1[i] = s2[s2.size() - i - 1];
  for (register int i = 0; i < s1.size(); i++) {
    if (s1[i] == 'b') s1[i] = 'd';
    if (s1[i] == 'd') s1[i] = 'b';
    if (s1[i] == 'p') s1[i] = 'q';
    if (s1[i] == 'q') s1[i] = 'p';
  }
  if (s1 == s2)
    puts("YES");
  else
    puts("NO");
  return 0;
}
