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