#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  if (a.length() & 1) {
    cout << "No" << endl;
    return 0;
  }
  for (int i = 0; i < a.length() / 2; i++) {
    if (a[i] == 'p' && a[a.length() - i + 1] != 'q') {
      cout << "No" << endl;
      return 0;
    } else if (a[i] == 'q' && a[a.length() - i + 1] != 'p') {
      cout << "No" << endl;
      return 0;
    } else if (a[i] == 'b' && a[a.length() - i + 1] != 'd') {
      cout << "No" << endl;
      return 0;
    } else if (a[i] == 'd' && a[a.length() - i + 1] != 'b') {
      cout << "No" << endl;
      return 0;
    }
  }
}
