IntermediateRating 1300
Almost a Palindrome
Print YES if the string becomes a palindrome after deleting at most one character, otherwise NO.
Input
One string (length ≤ 10⁵).
Output
YES or NO.
Sample 1
Input
abca
Output
YES
Sample 2
Input
abc
Output
NO
Output appears here