#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main()
{
    int n; // broj na redici
    int m; // broj na koloni
    cin >> n >> m;
    int mat[n][m];
    for(int i = 0; i < n; i++) { // izmini gi site redici
        for(int j = 0; j < m; j++) { // izmini gi site koloni
            cin >> mat[i][j];
        }
    }
    for(int i = 0; i < n; i++) {
        for(int j = 0; j < m; j++) {
            cout << mat[i][j] << " ";
        }
        cout << endl;
        
    }
    return 0;
}
