Table of results#11034

Table of results

1 second
128 megabytes
Very easy

Ralph and Vanellope, while traveling through the games, absolutely accidentally ended up on the computer of a participant in a programming competition. Moreover, they found out that the participant was offered problems and for each of them it is possible to submit the solution no more than times.

The heroes also found a table with the results of testing solutions. The table consists of rows and columns. The cell located in the -th row and -th column contains the symbol:

Vanellope explained to Ralph that the first correct solution for each problem counts, and all other solutions submitted for this problem do not affect the participant's result in any way.

Ralph became interested in how many tasks from the proposed ones the participant of the Olympiad could solve. But since he is too shy to ask Vanellope for help, help him!

Input

The first line contains two numbers and (1 \le n, m \le 100) - the number of tasks and the maximum possible number of sent solutions for one problem, respectively.

Each of the following lines contains characters "+", "-" or "." - description of the resulting table.

It is guaranteed that after the character "." only the same characters can appear.

Output

Print one number - the number of problems solved correctly by the participant.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading