#C342. Check Palindrome

    ID: 46845 Type: Default 1000ms 256MiB

Check Palindrome

Check Palindrome

The task is to determine whether a given string is a palindrome. A palindrome is a word that reads the same backward as forward. For example, \(racecar\) is a palindrome, while \(hello\) is not. The string will be provided through standard input and the result should be printed to standard output.

inputFormat

A single line containing the string (s) that needs to be checked.

outputFormat

Print "PALINDROME" if the input string is a palindrome; otherwise, print "NOT PALINDROME".## sample

racecar
PALINDROME