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 solve(s):
    if s == "".join(reversed(s)):
        if len(s)%2 == 0:
            return "NO"
        return "YES"
    for i in range(len(s)):
        res = list(s)
        if s[i] != s[len(s)-i-1]:
            res[i] = s[len(s)-i-1]
            if "".join(res) == "".join(reversed(res)):
               return "YES"
    return "NO" 

        


def main():
    # vars = list(map(int, input().split(" ")))
    # n = int(input())
    # arr = []
    # for _ in range(n):
    #     l = list(input())
    #     arr.append(l)
    s = input()

    # s = input()
    # a = list(map(int, input().split(" ")))
    # b = list(map(int, input().split(" ")))
    # c = list(map(int, input().split(" ")))
    # res = []
    # for _ in range(n):
    #    arr = list(map(int, input().split(" ")))
    #    res.append(arr)
    print(solve(s))
    # i = 0
    # inputpath = 'input.txt'
    # outPath = 'output.txt'
    # with open(inputpath) as fp:
    #     line = fp.readline()
    #     cnt = 1
    #     while line:
    #         if cnt == 1:
    #             i = int(line)
    #         else:
    #            arr = list(map(int, line.split(" ")))
    #            res.append(arr)  
    #         cnt += 1
    #         line = fp.readline()
    # s = solve(res,i)
    # with open(outPath, 'a') as out:
    #     out.write(str(s))


main()