#include <bits/stdc++.h>
using namespace std;
char a[100000];
int x;
int main() {
  scanf("%s", &a);
  x = abs(a[0] - a[strlen(a) - 1]);
  for (int i = 0; i < strlen(a) / 2; i++, x = abs(a[i] - a[strlen(a) - i - 1]))
    if (x != 1 && x != 2) {
      cout << "No\n";
      return 0;
    }
  cout << "Yes\n";
  return 0;
}
