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.util.*;
/**
 *
 * Beschreibung
 *
 * @version 1.0 vom 22.08.2018
 * @author 
 */

public class palindrommike {
  
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String wort = sc.nextLine();
    int wl = wort.length();
    char[] chort = wort.toCharArray();
    
    String buchstabe = "abcdefghijklmnopqrstuvwxyz";
    char[] buchstaben = buchstabe.toCharArray();
    
    if (moglich(chort,wl, buchstaben)==true) {
      System.out.println("YES");
    } else {
      System.out.println("NO");
    } 
    
    
  } 
  
  public static boolean moglich (char[] chort, int wl, char[] buchstaben) {
    char[] chort1 = new char[wl];
    for (int i = 0; i<wl; i++) {  //zweites Char wird gefüllt
      chort1[i] = chort[i];
    }   
    
    for (int i = 0; i<wl; i++) {
      for (int j = 0;j<26; j++) {
        if (chort[i] == buchstaben[j]) {
          j++;
        } else {
          chort[i] = buchstaben[j];
          if (paltes(chort) == true) {
            return true;
          }
          chort[i] = chort1[i];
        }
      } 
      
      for (int k = 0; k<wl; k++) {  //erstes Char wird resettet!
        chort[i] = chort1[i];
      } 
    } 
    
    return false;
    
  }   

  public static boolean paltes (char[] chort) {    //gibt als Boolean zurück, ob es ein Palindrom ist!
    String a = String.valueOf(chort);
    String b = a;
    b = new StringBuffer(b).reverse().toString(); //hier umgedreht
    if (a.equals(b)) {
      return true; 
    } else {
      return false;
    }
  }
    
    
} // end of class palindrommike