p00063 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
```python
# coding: utf-8
# Your code here!

n = 0
while True:
    try:
        t = str(input())
        if t == t[::-1]:
            n += 1
    except EOFError:
        break
print(n)

```