#include <bits/stdc++.h>
const int d[][2] = {{1, 1}, {1, -1}, {-1, 1}, {-1, -1}};
using namespace std;
inline int read() {
  int x = 0, y = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') y = 1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar();
  return y ? -x : x;
}
template <typename T>
inline T read() {
  T x = 0;
  int y = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') y = 1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar();
  return y ? -x : x;
}
int ma[] = {-2100000000, -2100000000, -2100000000, -2100000000};
signed main() {
  read(), read();
  int n = read(), x, y, ans = 2100000000, pos = 0;
  while (n--) {
    x = read(), y = read();
    for (register int i = 0; i < 4; ++i)
      ma[i] = max(ma[i], d[i][0] * x + d[i][1] * y);
  }
  n = read();
  for (register int j = 1; j <= n; ++j) {
    int dis = 0;
    x = read(), y = read();
    for (register int i = 0; i < 4; ++i)
      dis = max(dis, ma[i] - d[i][0] * x - d[i][1] * y);
    if (dis < ans) ans = dis, pos = j;
  }
  printf("%d\n%d\n", ans, pos);
}
