Problem: Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the resulting one is a palindrome. 

A palindrome is a string that reads the same backward as forward, for example strings "z", "aaa", "aba", "abccba" are palindromes, but strings "codeforces", "reality", "ab" are not.

Input

The first and single line contains string s (1 ≤ |s| ≤ 15).

Output

Print "YES" (without quotes) if Mike can change exactly one character so that the resulting string is palindrome or "NO" (without quotes) otherwise. 

Examples

Input

abccaa


Output

YES


Input

abbcca


Output

NO


Input

abcda


Output

YES

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            char[] s = in.nextLine().toCharArray();
            if (check(s) && s.length % 2 != 0) {
                out.println("YES");
                return;
            } else if (check(s)) {
                out.println("NO");
                return;
            }


            for (int i = 0; i < s.length; ++i) {
                char[] temp = Arrays.copyOf(s, s.length);
                for (int j = 97; j <= 120; ++j) {
                    temp[i] = (char) j;
                    if (check(temp)) {
                        out.println("YES");
                        return;
                    }
                }
            }
            out.println("NO");
        }

        public boolean check(char[] s) {
            char[] temp = new char[s.length];
            int index = -1;
            for (int i = s.length - 1; i >= 0; --i) {
                temp[++index] = s[i];
            }

            String finS = new String(s);
            String finT = new String(temp);


            return finS.equals(finT);
        }

    }
}