#include <bits/stdc++.h>
using namespace std;
string s, b;
int main() {
  cin >> s;
  b = s;
  reverse(s.begin(), s.end());
  for (int i = 0; i < s.size(); i++)
    if (s[i] == 'b')
      b[i] = 'd';
    else if (s[i] == 'd')
      s[i] = 'b';
    else if (s[i] == 'p')
      s[i] = 'q';
    else if (s[i] == 'q')
      s[i] = 'p';
  s == b ? puts("Yes") : puts("No");
  return 0;
}
