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

const
    MAXN = 1000;

var
    M, N, P, i : LongInt;
    city       : Array[0..MAXN-1] of AnsiString;

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);

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

    P := 0;

    { INSERT YOUR CODE HERE }


    WriteLn(P);

end.
