#include <bits/stdc++.h>
using namespace std;
int N;
int main() {
  string str;
  cin >> str;
  bool flag = true;
  for (int i = 0; i < str.size() / 2; ++i) {
    switch (str[i]) {
      case 'p':
        if (!(str[i] == 'p' && str[str.size() - 1 - i] == 'q')) flag = false;
        break;
      case 'q':
        if (!(str[i] == 'q' && str[str.size() - 1 - i] == 'p')) flag = false;
        break;
      case 'b':
        if (!(str[i] == 'b' && str[str.size() - 1 - i] == 'd')) flag = false;
        break;
      default:
        if (!(str[i] == 'd' && str[str.size() - 1 - i] == 'b')) flag = false;
        break;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
