{ NOTE: it is recommended to use this even if you don't understand the following code }

const
    MAXN = 200000;

var
    K, M, N, i : LongInt;
    A          : Array[0..MAXN-1] of LongInt;
    B          : Array[0..MAXN-1] of LongInt;
    SX         : Array[0..MAXN-1] of LongInt;
    SY         : Array[0..MAXN-1] of LongInt;

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

    ReadLn(N, M, K);

    for i:=0 to N-1 do
        Read(A[i]);
    ReadLn();

    for i:=0 to M-1 do
        Read(B[i]);
    ReadLn();

    for i := 0 to MAXN-1 do SX[i] := 0;
    for i := 0 to MAXN-1 do SY[i] := 0;


    { INSERT YOUR CODE HERE }


    for i:=0 to K - 2 do
        Write(SX[i], ' ');
    WriteLn();

    for i:=0 to K - 2 do
        Write(SY[i], ' ');
    WriteLn();

end.
