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