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:
import sys

s = list(sys.stdin.readline().strip())

count = 0
for i in range(len(s)):
    sAux = s[:]
    flag = False
    for j in range(1, 26):
        aux = ord(s[i]) + j
        
        if aux > 122:
            aux = aux % 122 + 96
        sAux[i] = chr(aux)
        r = sAux[:]
        r.reverse()
        
        if r == sAux:
            flag = True
            break
        
    if flag:
        break

if flag:
    print("YES")
else:
    print("NO")





# 
# def multiply(F, M):
#     
#     mod = 1000000000 + 7
#     
#     x = (((F[0][0]) % mod * (M[0][0]) % mod) % mod + ((F[0][1]) % mod * (M[1][0]) % mod) % mod) % mod
#     y = (((F[0][0]) % mod * (M[0][1]) % mod) % mod + ((F[0][1]) % mod * (M[1][1]) % mod) % mod) % mod
#     z = (((F[1][0]) % mod * (M[0][0]) % mod) % mod + ((F[1][1]) % mod * (M[1][0]) % mod) % mod) % mod
#     w = (((F[1][0]) % mod * (M[0][1]) % mod) % mod + ((F[1][1]) % mod * (M[1][1]) % mod) % mod) % mod
# 
#     F[0][0] = x
#     F[0][1] = y
#     F[1][0] = z
#     F[1][1] = w
# 
# 
# def power(F, n):    
#     if n == 0 or n == 1:
#         return
#     
#     M = [[1, 1], [1, 0]]
# 
#     power(F, n // 2)
#     multiply(F, F)
# 
#     if n % 2 != 0:
#         multiply(F, M)
# 
# def fib(n):
#     F = [[1, 1], [1, 0]]
#     
#     power(F, n + 1)
#     return F[0][0]
# 
# t = int(sys.stdin.readline().strip())
# 
# for test in range(t):
#     n = int(sys.stdin.readline().strip())
#     
#     print(fib(n))
#     
#     
#