Check Palindrome
Easyjavapythonccppjavascript
Determine whether a given string reads the same from left to right and from right to left. The comparison is case-sensitive.
Input Format
A single line containing the string S with no leading or trailing spaces.
Output Format
Print 1 if S is a palindrome, otherwise print 0.
Example 1
Input
level
Output
1
Explanation: level is unchanged when reversed.
- 1 <= length of S <= 100000
- S consists of visible ASCII characters.