#include <stdio.h>

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