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