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

var
    H, W, vx, vy, x1, x2, y1, y2 : LongInt;
    T, ans                       : Int64;

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(W, H, T);

    ReadLn(x1, y1, vx, vy);

    ReadLn(x2, y2);

    ans := 0;

    { INSERT YOUR CODE HERE }


    WriteLn(ans);

end.
