Easy
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a string s, determine if it can be a palindrome after deleting exactly one character.
Input
Contains a string s (1 ≤ length(s) ≤ 10^6
).
Output
Print yes, if after deleting exactly one character from string s, it turns to palindrome, otherwise print no.
If answer is yes, in the second line of output print the resulting palindrome string. If there are several solutions print any of them.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 1K
Acceptance rate 16%