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:

def gcd(a,b):
    if a<b: return gcd(b,a)

    if a%b==0: return b
    return gcd(b,a%b)



def sol():
    inp = list(map(int, raw_input().split()))
    n,k = inp[0],inp[1]

    st = list(map(int, raw_input().split()))
    vals = []

    minv = st[0]
    for i in range(1,n): 
        minv = min(st[i],minv)

    for i in range(0,n):
        if st[i]-minv !=0:
            vals.append(st[i]-minv)

    if len(vals)==0:
        print 0
        return

    agcd = vals[0]
    for i in range(0,len(vals)):
        if vals[i] !=0:
            agcd = gcd(agcd,vals[i])

    if agcd%k!=0:
        print -1
        return

    sol = 0
    for i in range(0,n): 
        sol += ( st[i] - minv)/k
    print sol

def ws():
    n = input()
    st = list(map(int, raw_input().split()))

    odd = []
    asum = 0

    for i in range(0,n):
        asum += st[i]
        if st[i]%2!=0:
            odd.append(st[i])

    if(len(odd)%2!=0):
        odd.sort()
        asum -= odd[0]

    print asum

def pl():
    astr = raw_input()
    
    sol = 0
    for i in range(0,len(astr)/2):
        if astr[i]!= astr[len(astr)-(1+i)]:
            sol +=1

    if sol==1 or (sol==0 and len(astr)%2!=0):
        print "YES"
    else:
        print "NO"



pl()
#sol()