#include <bits/stdc++.h>
int main() {
  char s[10001];
  scanf("%s", s);
  if (strlen(s) % 2 == 1) {
    printf("NO");
    return 0;
  }
  for (int i = 0, j = strlen(s) - 1; i < j; i++, j--)
    if (fabs(s[i] - s[j]) > 2 || fabs(s[i] - s[j]) == 0) {
      printf("NO");
      return 0;
    }
  printf("Yes");
  return 0;
}
