{ NOTE: it is recommended to use this even if you don't understand the following code } const MAXQ = 200000; var M, N, Q, X0, XV, Y0, YV, i : LongInt; X, Y : Array[0..MAXQ-1] of LongInt; A : Array[0..MAXQ-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); ReadLn(X0, Y0, XV, YV); ReadLn(Q); for i:=0 to Q-1 do ReadLn(X[i], Y[i]); for i := 0 to MAXQ-1 do A[i] := ''; { INSERT YOUR CODE HERE } for i:=0 to Q-1 do WriteLn(A[i]); end.