#include <iostream>
using namespace std;
const int N = 150;
int a[N][N];
int row, col;
void print2D(int a[][N], int row, int col)
{
for (int i = 0; i < row; i++)
{
for (int j = 0; j < col; j++)
cout << a[i][j] << ' ';
cout << endl;
}
}
int main(void)
{
cin >> row >> col;
for (int i = 0; i < row; i++) {
for (int j = 0; j < col; j++) {
cin >> a[i][j];
}
}
print2D(a, row, col);
return 0;
}