#include <stdio.h>

int main() {
int row,cols;
scanf("%d %d",&row, &cols);
int matrix[row][cols];
for(int i = 0; i < row; i++){
    for(int j = 0; j < cols; j++){
        scanf("%d",&matrix[i][j]);
    }
}
for(int i = 0; i < row; i++){
    for(int j = 0; j < cols; j++){
        printf("%d ",matrix[i][j]);
    }
    printf("\n");
}