406463: GYM102416 A Palindrome
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Palindrometime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Palindrome is a word that looks the same when you read it from the beginning and from the end. For example "kayak", "level". The same is with numbers: $$$909$$$, $$$1221$$$, $$$12321$$$ are palindromes. For a given list of numbers, please print how many of them are palindromes.
InputIn the first line of input we have a single number $$$1\leq n \leq 100$$$. In the next line there follows $$$n$$$ positive numbers, not bigger than $$$10^{50}$$$.
OutputPrint a single number: how many among input numbers are palindromes?
ExampleInput4 3 546 74647 74565Output
2