#include <bits/stdc++.h>
using namespace std;
char a[1001], b[1001], c[1001];
int main() {
  cin >> a;
  for (int i = 0; i <= 3; i++) b[3 - i] = a[i];
  for (int i = 0; i <= 3; 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';
  if (a[0] == b[0] && a[1] == b[1] && a[2] == b[2] && a[3] == b[3])
    printf("Yes");
  else
    printf("No");
  return 0;
}
