#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s2 = "    ";
  for (int i = 0; i < 4; i++) {
    s2[i] = s[3 - i];
  }
  string s3 = "    ";
  for (int i = 0; i < 4; i++) {
    if (s2[i] == 'b') {
      s3[i] = 'd';
    }
    if (s2[i] == 'd') {
      s3[i] = 'b';
    }
    if (s2[i] == 'p') {
      s3[i] = 'q';
    }
    if (s2[i] == 'q') {
      s3[i] = 'p';
    }
  }
  bool ok = true;
  for (int i = 0; i < 4; i++) {
    if (s[i] != s3[i]) {
      ok = false;
    }
  }
  cout << (ok ? "Yes" : "No") << endl;
}
