Problem2241--循环查找五位回文数

2241: 循环查找五位回文数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Status] [Submit] [Creator:]

Description

输入n个五位数,判断这n个数中有多少个回文数。(回文数是指一个数从左到右读与从右到左读是一样的数,如12321就是回文数。 )

Input

输入2行,
第一行一个正整数n(n<=1000)
第二行n个五位数,数字间以空格分隔。

Output

输出一行,即一共有多少个回文数。

Sample Input Copy

3
12321 12345 34543

Sample Output Copy

2

Source/Category