#D5309. Palindrome

    ID: 4414 Type: Default 1000ms 134MiB

Palindrome

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

inputFormat

outputFormat

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