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

#include <fstream>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int N, M;
    cin >> N >> M;

    vector<vector<char>> G(N, vector<char>(M));
    for (int j = 0; j < N; ++j) {
        for (int i = 0; i < M; ++i)
            cin >> G[j][i];
    }

    int C = 0;


    // INSERT YOUR CODE HERE


    cout << C << endl;

    return 0;
}
