#include <bits/stdc++.h>
using namespace std;
bool is_pal(string a) {
  string b = a;
  reverse(b.begin(), b.end());
  return b == a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  ;
  string second;
  cin >> second;
  for (int i = 0; i < second.size(); i++) {
    string temp = second;
    for (char j = 'a'; j <= 'z'; j++) {
      if (j == second[i]) continue;
      temp[i] = j;
      if (is_pal(temp)) {
        cout << "YES\n";
        return 0;
      }
    }
  }
  cout << "NO\n";
  return 0;
}
