#include <bits/stdc++.h>
int main() {
  std::string a, b;
  std::cin >> a;
  b = a;
  std::reverse(a.begin(), a.end());
  int len = a.size();
  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';
  }
  if (a == b)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No" << std::endl;
}
