#include <bits/stdc++.h>
using namespace std;
int main() {
  int q = -2.1e9, w = -2.1e9, e = -2.1e9, r = -2.1e9, x, y, c, a = -(-2.1e9), C,
      p;
  cin >> x >> y >> c;
  while (c--)
    scanf("%d%d", &x, &y), q = max(q, x + y), w = max(w, x - y),
                           e = max(e, y - x), r = max(r, -x - y);
  cin >> c;
  for (int i = 1; i <= c; i++) {
    scanf("%d%d", &x, &y);
    C = max(q - x - y, max(w - x + y, max(e + x - y, r + x + y)));
    if (C < a) a = C, p = i;
  }
  cout << a << endl << p << endl;
  return 0;
}
