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

{ constraints }
const
    MAXN = 10000;

{ input data }
var
    N             : longint;
    op1, op2, res : array[0..2*MAXN] of char;

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(op1);
    readln(op2);
    readln(res);
    N := strlen(op1);

    { insert your code here }
    { Note that both operands and result are read as strings (array of char) }

    { print result} 
    writeln(res); { op1 }
    writeln(res); { op2 }
end.
