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.util.*;

/**
 *
 * @author user
 */
public class NewMain5 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner s = new Scanner(System.in);

        String str = s.next();
        if (palin(str)) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }

    }

    public static boolean palin(String str) {
        String em = "";
        int counter = 0;
        int[] chr = new int[26];
        for (int i = str.length() - 1; i >= 0; i--) {
            em += str.charAt(i);
            chr[str.charAt(i) - 97]++;
            if (str.charAt(i) != str.charAt((str.length() - 1) - i)) {

                if (counter > 1) {
                    return false;
                }
                counter++;
            }
        }

        boolean f = false;
        for (int i = 0; i < chr.length; i++) {
            if (chr[i] % 2 == 1) {
                if (!f) {
                    f = true;
                } else {
                    f = false;
                    break;
                }
            }

        }

        //System.out.println(Arrays.toString(chr) + "  " + f);
        return counter == 2 || f;
    }
}