// 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<int>> A(N, vector<int>(M));
    for (int j = 0; j < N; ++j) {
        for (int i = 0; i < M; ++i)
            cin >> A[j][i];
    }

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

    long long K = 0;


    // INSERT YOUR CODE HERE


    cout << K << endl;

    return 0;
}
