#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10002], b[10002];
  int c;
  gets(a);
  for (int i = strlen(a) - 1; i >= 0; i--) {
    b[c] = a[i];
    c++;
  }
  for (int i = 0; i < strlen(a); i++) {
    if ((a[i] == 'b' && b[i] != 'd') || (a[i] == 'd' && b[i] != 'b') ||
        (a[i] == 'p' && b[i] != 'q') || (a[i] == 'q' && b[i] != 'p')) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
