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 PYTHON):

Solution:
import re
entrada=raw_input()
a=len(entrada)
if re.match("^[a-z]*$", entrada):
    if 1<=a<=15:
        m=a/2
        if a%2!=0:
            c=entrada[m+1:]
        else:
            c=entrada[m:]
        b=entrada[:m]
        i=0
        j=0
        for j in range(0,m):
            if b[j]!=c[m-j-1]:
                i=i+1
            if i>1 :
                print('NO')
                break 
        if i==0 and a%2!=0:
            print('YES')  
        elif i==0:
            print('NO')   
      
        if i==1:
            print('YES')