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.File;
//import java.io.FileNotFoundException;
import java.util.Scanner;

public class mike {

	public static void main(String[] args) {

		// File file = new File("file.txt");

		Scanner scan = new Scanner(System.in);

		String olasalo = scan.next();
		scan.close();
		char[] a = new char[15];

		int length = olasalo.length();

		for (int i = 0; i < length; i++) {

			a[i] = olasalo.charAt(i);

		}
		int x = 0;
		for (int i = 0; i < length / 2; i++) { // avrundar ner

			if (a[i] != a[length - (1 + i)]) {

				x++;
			}

		}

		if ((length & 1) != 0 && x == 0) {
			
				x++;
		}
		
		if (x == 1)
			System.out.println("YES");

		else
			System.out.println("NO");

	}

}