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