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:
//codeforces_798A

import java.io.*;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static java.lang.Math.*;

public class acm{
	static BufferedReader gi = new BufferedReader(new InputStreamReader(System.in));
	static PrintWriter go = new PrintWriter(System.out);
	
	public static void main(String args[]) throws IOException{
		String line[] = gi.readLine().split("");
		int len = line.length;
		Stack<String> st = new Stack<>();
		for (int k = 0; k<len/2; k++){ st.push(line[k]); }
		int changes = 0;
		for (int k = len/2+len%2; k<len; k++){
			if (!st.peek().equals(line[k])){ changes++; }
			st.pop();
		}
		if (changes == 0 && len%2 == 1){ go.println("YES"); }
		else
		go.println((changes == 1)?"YES":"NO");
		go.close();
	}

	static int[] parseArray(String[] line){
		int k = 0;
		int[] A = new int[line.length];
		for (String e : line){ A[k++] = Integer.parseInt(e); }
		return A;
	}
}