#include <bits/stdc++.h>
using namespace std;
int n, m, xRange[2], yRange[2];
inline void gMax(int &x, int y) { x = x < y ? y : x; }
inline void gMin(int &x, int y) { x = x > y ? y : x; }
int main() {
  xRange[0] = yRange[0] = INT_MAX;
  xRange[1] = yRange[1] = INT_MIN;
  scanf("%d%d%d", &n, &m, &n);
  for (int i = 1; i <= n; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    x = x - y, y = x + 2 * y;
    gMin(xRange[0], x), gMax(xRange[1], x);
    gMin(yRange[0], y), gMax(yRange[1], y);
  }
  scanf("%d", &m);
  int ans = INT_MAX, pos;
  for (int i = 1; i <= m; ++i) {
    int x, y;
    scanf("%d%d", &x, &y);
    x = x - y, y = x + 2 * y;
    int dis = max(abs(x - xRange[0]), abs(x - xRange[1]));
    gMax(dis, max(abs(y - yRange[0]), abs(y - yRange[1])));
    if (dis < ans) ans = dis, pos = i;
  }
  printf("%d\n%d\n", ans, pos);
  return 0;
}
