// editor1
#include <stdio.h>
int main()
{
    int row;
    int cols;
    scanf("%d ",&row);
    scanf("%d",&cols);
    
    int matrix [row][cols];
    for(int i=0;i<row;i++)
    {
        for(int j=0;j<cols;j++)
        {
            scanf("%d %d",&matrix [i][j]);
        }
    }
     
     for(int i=0;i<row;i++)
    {
        for(int j=0;j<cols;j++)
        {
            printf("%d %d",matrix [i][j]);
        }
        printf("\n");
    }
}