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

public class Main
{
    static BufferedReader in;
    static PrintWriter out;

    static void solve() throws Exception{
        String s = in.readLine();
        int g = 0;
        int k = s.length()/2;
        if(s.length() % 2 ==0)
        {
            for (int i = 0; i < s.length()/2; i++)
            {

                if(s.charAt(k+i) != s.charAt(k-i-1))
                {
                    g++;
                    if (g > 1)
                        break;
                }
            }
        }
        else{
            for (int i = 0; i <= s.length()/2; i++)
            {

                if(s.charAt(k+i) != s.charAt(k-i))
                {
                    g++;
                    if (g > 1)
                        break;
                }
                if(i == s.length()/2 && g == 0) g++;
            }
        }
        if(g == 1) out.print("YES");
        else out.print("NO");
    }

    public static void main(String[] args) throws Exception
    {
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        solve();
        out.flush();
    }


   /* static int nextInt() throws Exception{
        in.nextToken();
        return (int)in.nval;
    }

    static byte nextByte() throws Exception{
        in.nextToken();
        return (byte)in.nval;
    }

    static long nextLong() throws Exception{
        in.nextToken();
        return (long)in.nval;
    }*/

    static int min(int a,int b){
        return a < b ? a : b;
    }

    static int max(int a,int b){
        return a > b ? a : b;
    }
}