#include <bits/stdc++.h>
using namespace std;
string a, s1;
int m;
bool mark;
int main() {
  cin >> a;
  m = a.size();
  for (int i = 0; i < m; i++) s1[i] = a[i];
  for (int i = 0; i < m; 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';
  }
  mark = 1;
  for (int i = 0; i < m; i++) {
    if (a[i] != s1[m - i - 1]) mark = 0;
  }
  if (mark == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
