11896 - Check Palindrome (function)   

Description

Palindrome is a string that is identical to its reverse, like "level" or "aba". Given a string, check it is palindrome or not.

You are to check all possibile substring (the length of substring is greater than or equal to 2).

NOTE: In the partial code, the function has three parameters: the pointer of the input string, the start position, and the end position.

The range of each substring is from start position to end position (contain the element in the end position).

Input

The input only contains one string. The length of the string is less than 1000.

Output

If the substring is palindrome, print "Yes\n".

If the substring is not palindrome, print "No\n".

Sample Input  Download

Sample Output  Download

Partial Judge Code

11896.c

Partial Judge Header

11896.h

Tags




Discuss