program mountain;

const
    MAXN = 100000;

var
    ANS, N, i : LongInt;
    P         : 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);

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

    ANS := 0;

    { INSERT YOUR CODE HERE }


    WriteLn(ANS);

end.
