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

public class A 
{


	static char arr[];

	
	public static boolean ok()
	{
		StringBuilder sb = new StringBuilder();
		for(int i = 0 ; i < arr.length ; ++i)
			sb.append(arr[i]);
		String str = sb.toString();
		String rev = sb.reverse().toString();
		return str.equals(rev);
	}
	public static void main(String[]args) throws Throwable
	{
		SC sc = new SC(System.in);
		PrintWriter out = new PrintWriter(System.out);
		arr = sc.next().toCharArray();
		int n = arr.length;
		boolean ans = false;
		for(int i = 0 ; i < n ; ++i)
		{
			for(int j = 0 ; j < 26 ; ++j)
			{
				char c = (char)('a' + j);
				if(c == arr[i])
					continue;
				char tmp = arr[i];
				arr[i] = c;
				ans |= ok();
				arr[i] = tmp;
			}
		}
		if(ans)
			System.out.println("YES");
		else System.out.println("NO");
		
	


	}
	static class SC
	{
		BufferedReader br;
		StringTokenizer st;


		SC(InputStream s)  { br = new BufferedReader(new InputStreamReader(s)); }

		String next() throws IOException
		{
			while(st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();

		}
		long nextLong() throws NumberFormatException, IOException { return Long.parseLong(next()); }


		int nextInt() throws NumberFormatException, IOException { return Integer.parseInt(next()); }

	}
}