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