#include<bits/stdc++.h>
using namespace std;
int n,m,a[1500][1500];
int main (){
    cin>>n>>m;
    for (int i=1;i<=n;i++){
        for (int j=1;j<=m;j++){
            cin>>a[i][j];
        }
    }
    cout<<3<<endl;

return 0;
}