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