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