{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXN = 100000; var K, N, bottomLeftX, bottomLeftY, bottomRightX, bottomRightY, i, topLeftX, topLeftY, topRightX, topRightY : LongInt; X, Y : 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(topLeftX, topLeftY); ReadLn(topRightX, topRightY); ReadLn(bottomRightX, bottomRightY); ReadLn(bottomLeftX, bottomLeftY); ReadLn(N); for i:=0 to N-1 do ReadLn(X[i], Y[i]); K := 0; { INSERT YOUR CODE HERE } WriteLn(K); end.