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

Solution:
def ispal(s):
   if len(s)==0 or len(s)==1:
       return True
   elif s[0]==s[-1]:
       return ispal(s[1:-1])
   else:
       return False
s=str(input())
list1=list(s)
count=0
list2=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
list3=list1[:]
count=0
count1=0
for i in range(len(s)):
    list3=list1[:]
    for c in list2:
        list3[i]=c
        if ispal(list1) and len(s)%2==0:
            print("NO")
            count1+=1
            break
        elif ispal(list3):
            print("YES")
            count+=1
            count1+=1
            break
    if count1>0:
        break
if count==0 and not (ispal(list1) and len(s)%2==0):
    print("NO")