P11660 [AOJ] Palindrome
普及
题目描述

There is data of up to 100 characters per line, consisting of half-width alphabetic character strings. Some lines are symmetric (same whether read from the left edge or the right edge). Create a program that reads this data and outputs the number of symmetric strings in it. Note that lines consisting of only one character are symmetrical.

Input

Multiple strings are given over multiple lines. One string is given for each line. The number of strings does not exceed 50.

Output

Outputs the number of symmetric strings on one line.

Example

Input

abcba
sx
abcddcba
rttrd

Output

2

输入格式

见题面

输出格式

见题面

样例输入
abcba sx abcddcba rttrd
样例输出
2