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 main():
	from sys import stdin,stdout
if __name__=='__main__':
	main()
'''
#357B
'''
def main():
	from sys import stdin,stdout
	n,m=map(int,stdin.readline().split())
	arr = [0 for x in range(n)]
	a,b,c = map(int,stdin.readline().split())
	arr[a-1]=1
	arr[b-1]=2
	arr[c-1]=3
	for _ in range(m-1):
		a,b,c = map(int,stdin.readline().split())
		lset = set()
		for i in (a,b,c):
			lset.add(arr[i-1])
		for i in range(1,4):
			if i not in lset:
				if arr[a-1]:
					if arr[b-1]:
						arr[c-1]=i
					else:
						arr[b-1]=i
				else:
					arr[a-1]=i
		
	for i in range(n):
		stdout.write(str(arr[i])+' ')

if __name__=='__main__':
	main()
'''
#Codeforces Round #401
#A
def main():
	from sys import stdin,stdout
	ip = stdin.readline().strip()
	count = len(ip)
	counter = 0
	for i in range(count//2):
		if ip[i]!=ip[count-i-1]:
			counter +=1
	if counter ==1:
		stdout.write('YES')
	else:
		if counter == 0:
			if count &1:
				stdout.write('YES')
			else:
				stdout.write('NO')
		else:
			stdout.write('NO')
if __name__=='__main__':
	main()