Skip to content
C

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.

Input (stdin)

Output

Run your code to see output here...