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.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class Main
{
    static PrintWriter out;
    static InputReader in;
    static InputStream inputs;
    
    public static void main(String[] args)
    {   
        inputs = System.in;
        in = new InputReader(inputs);
        out = new PrintWriter(new BufferedOutputStream(System.out),true);
        StringBuilder s = new StringBuilder(in.next());
        int count = 0;
        for (int i = (s.length()/2)-1,j = s.length()/2+s.length()%2; i >= 0; i--,j++)
        {
            if (s.charAt(i) != s.charAt(j))
            {
                count++;
            }
        }
        if (count == 1 || (count == 0 &&s.length()%2 == 1))
        {
            out.println("YES");
        }else
        {
            out.println("NO");
        }
    }   
    static class InputReader 
    {

        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) 
        {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) 
            {
                try 
                {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e)
                {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() 
        {
            return Integer.parseInt(next());
        }
    }
}