var
    R, C, K : longint;
    i, j    : longint;
    value   : longint;

begin
{
    uncomment the following lines if you want to read/write from files
    assign(input,  'input.txt');  reset(input);
    assign(output, 'output.txt'); rewrite(output);
}

    readln(R, C, K);
    for i:=0 to R-1 do begin
        for j:=0 to C-1 do begin
            read(value);
            { insert your code here }
        end;
        readln();
    end;

    { change the following lines with actual answers }
    for i:=1 to K do
        writeln(42, ' ', 42, ' ', 42, ' ', 42);
end.
