#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int main() {
  s1.reserve(100010);
  s2.reserve(100010);
  char ch = getchar();
  int len = 0;
  while (!isalpha(ch)) ch = getchar();
  while (isalpha(ch)) {
    s1[len++] = ch;
    ch = getchar();
  }
  for (int i = 0; i < len; ++i) {
    switch (s1[i]) {
      case 'b':
        s2[len - i - 1] = 'd';
        break;
      case 'd':
        s2[len - i - 1] = 'b';
        break;
      case 'p':
        s2[len - i - 1] = 'q';
        break;
      case 'q':
        s2[len - i - 1] = 'p';
        break;
    }
  }
  if (s1 == s2)
    puts("Yes");
  else
    puts("No");
  return 0;
}
