#include <bits/stdc++.h>
using namespace std;
int n, a, b, c, d, e, f, x, y, z;
int main(void) {
  register int Sha, Bi;
  cin >> Sha >> Bi;
  register int i;
  register int N;
  cin >> N;
  register int A, B, C, D;
  A = B = C = D = 2147483647;
  for (i = 1; i <= N; i++) {
    register int U, V;
    cin >> U >> V;
    A = min(A, U + V);
    B = min(B, U - V);
    C = min(C, V - U);
    D = min(D, -U - V);
  }
  cin >> N;
  register int Ans, W;
  Ans = 2147483647;
  register int Z;
  Z = 0;
  for (i = 1; i <= N; i++) {
    register int U, V;
    cin >> U >> V;
    Z = max(max(U + V - A, U - V - B), max(V - U - C, -U - V - D));
    if (Ans > Z) Ans = Z, W = i;
  }
  cout << Ans << endl << W << endl;
  return 0;
}
