#include <iostream>
using namespace std;

class test
{
public:
	template <size_t A, size_t B>
    void print(int (&mat)[A][B])
    {
        for (int i = 0; i < A; ++i)
        {
            for (int j = 0; j < B; ++j)
            {
                cout << mat[i][j] << " ";
            }
            cout << endl;
        }
    }
};

int main()
{
    int mat[3][2] = {{2,3},{4,5},{6,7}};
    test arr;
    arr.print(mat);
    return 0;
}