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