// NOTE: it is recommended to use this even if you don't understand the following code.

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

#define MAXM 1001
#define MAXN 1001

int    M, N, P, i;
char   city[MAXN][MAXM];

int main() {
    // uncomment the two following lines if you want to read/write from files
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);

    assert(2 == scanf("%d%d", &N, &M));

    for (i = 0; i < N; ++i)
        assert(1 == scanf("%s", city[i]));

    P = 0;


    // INSERT YOUR CODE HERE


    printf("%d\n", P);

    return 0;
}
