#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
using vs = vector<string>;
using msi = map<string, int>;
using mii = map<int, int>;
using pii = pair<int, int>;
using vlai = valarray<int>;
using ll = long long;
int main() {
  string s;
  cin >> s;
  auto r = s;
  reverse(r.begin(), r.end());
  for (int i = 0; i < r.size(); i++) {
    if (abs(s[i] - r[i]) > 2) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
