#include <iostream>
#include <stdio.h>
using namespace std;

int main()
{
    long long int  n, m, matrica[100000];
    cin >> n >> m;
    fore(long int i = 1; i <= n; i++){
        for(long int k = 1; k <=m; k++){
            cin >> matrica[i][k];
        }
    }
    cout << 0;

    return 0;
}