#include <bits/stdc++.h>
int max(int a, int b) {
  if (a > b)
    return a;
  else
    return b;
}
int main() {
  int n, m, p, r, x, y, c, i, j, zb, maxz;
  int max1, max2, max3, max4, minz;
  scanf("%d %d", &n, &m);
  scanf("%d", &c);
  for (i = 1; i <= c; i++) {
    scanf("%d %d", &x, &y);
    if (i == 1) max1 = x + y, max2 = x - y, max3 = -x + y, max4 = -x - y;
    if (i > 1 && x + y > max1) max1 = x + y;
    if (i > 1 && x - y > max2) max2 = x - y;
    if (i > 1 && -x + y > max3) max3 = -x + y;
    if (i > 1 && -x - y > max4) max4 = -x - y;
  }
  scanf("%d", &r);
  for (i = 1; i <= r; i++) {
    scanf("%d %d", &x, &y);
    maxz = max(max1 - (x + y), max2 - (x - y));
    maxz = max(maxz, max3 - (-x + y));
    maxz = max(maxz, max4 - (-x - y));
    if (i == 1) minz = maxz, zb = 1;
    if (i > 1 && maxz < minz) minz = maxz, zb = i;
  }
  printf("%d\n", minz);
  printf("%d\n", zb);
}
