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:
from collections import deque
from collections import Counter
from itertools import permutations
import heapq

def counterExample():
    arr = [1, 3, 4, 1, 2, 1, 1, 3, 4, 3, 5, 1, 2, 5, 3, 4, 5]
    counter = Counter(arr)
    top_three = counter.most_common(3)
    print(top_three)

q = deque()

#For stack we have:
#q.append()
#q.pop()

#For queue we have:
#q.append()
#q.popleft()


#for heap we have:
#heapify(a list)
#heapq.heappush()
#heapq.heappop()
#heapq.nlargest(k, iterable, key = fun)
#heapq.nsmallest(k, iterable, key = fun)





def main():
    string = input()
    j = len(string) - 1
    i = 0
    count = 0
    while i < j:
        if string[i] != string[j]:
            count += 1
        i += 1
        j -= 1
    if count > 1:
        print("NO")
    if count == 0 and len(string) % 2 == 1:
        print("YES")
    if count == 0 and len(string) % 2 == 0:
        print("NO")
    if count == 1:
        print("YES")






if __name__ == "__main__":
    main()