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