LearnPy Hub
← Arena
EasyRating 1000

Palindrome Words

Count the words in the sentence that are palindromes, ignoring letter case.

Input

One line of words.

Output

One integer.

Sample 1

Input
Anna saw a racecar at noon
Output
4

Sample 2

Input
hello world
Output
0
solution.py
Output appears here
Palindrome Words · Python Arena problem · LearnPy Hub