#include <bits/stdc++.h>
int main(int argc, char **argv) {
  int c, h, x, y, x0, y0, x1, y1, d, b;
  scanf("%*d %*d");
  scanf("%d", &c);
  scanf("%d %d", &x, &y);
  x0 = x1 = x - y;
  y0 = y1 = x + y;
  while (--c) {
    scanf("%d %d", &x, &y);
    x = x - y;
    y = x + y + y;
    if (x < x0) x0 = x;
    if (x > x1) x1 = x;
    if (y < y0) y0 = y;
    if (y > y1) y1 = y;
  }
  b = 0;
  scanf("%d", &h);
  scanf("%d %d", &x, &y);
  x = x - y;
  y = x + y + y;
  d = x - x0;
  if (x1 - x > d) d = x1 - x;
  if (y - y0 > d) d = y - y0;
  if (y1 - y > d) d = y1 - y;
  for (c = 1; c < h; c++) {
    scanf("%d %d", &x, &y);
    x = x - y;
    y = x + y + y;
    if (x - x0 < d && x1 - x < d && y - y0 < d && y1 - y < d) {
      b = c;
      d = x - x0;
      if (x1 - x > d) d = x1 - x;
      if (y - y0 > d) d = y - y0;
      if (y1 - y > d) d = y1 - y;
    }
  }
  printf("%d\n%d\n", d, b + 1);
  return 0;
}
