#include <bits/stdc++.h>
using namespace std;
string s, ss;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> s;
  ss = s;
  for (int i = 0; i <= s.size() - 1; i++)
    if (s[i] == 'b')
      s[i] = 'd';
    else if (s[i] == 'd')
      s[i] = 'b';
    else if (s[i] == 'p')
      s[i] = 'q';
    else
      s[i] = 'p';
  reverse(s.begin(), s.end());
  for (int i = 0; i <= s.size() - 1; i++)
    if (s[i] != ss[i]) {
      cout << "NO\n";
      return 0;
    }
  cout << "YES\n";
  return 0;
}
