{ constraints }
const
    MAXN = 100+5;
type matrix = array[0..MAXN] of array[0..MAXN] of int64;

{ input data }
var
    N, M, x, y, K, i, j  : longint;
    gifts                : matrix;

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(N, M, x, y, K);
    for i:=1 to N do
        begin
            for j:=1 to M do
                read(gifts[i][j]);
            readln();
        end;

    { insert your code here }

    writeln(42); { change 42 with actual answer }
end.
