#include<stdio.h>
int main(){
    int a,b,c;
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    
    if(a <=0 || b <= 0)
    {
        printf("Invalid input");
        return 0;
    }
    for(int i=0;i<a;i++){
        for(int j=0;j<b;j++){
            printf("%d ","0");
        }
        printf("\n");
    }
}