#include <bits/stdc++.h>
using namespace std;
int n, m, c, h, x, y, t1, t2, t3, t4, ans, p;
int read() {
  int r = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') r = r * 10 + c - '0', c = getchar();
  return r;
}
int main() {
  t1 = t2 = t3 = t4 = -2e9;
  ans = 2e9;
  n = read(), m = read(), c = read();
  for (int i = 1; i <= c; ++i) {
    x = read(), y = read();
    t1 = max(t1, x + y);
    t2 = max(t2, x - y);
    t3 = max(t3, -x + y);
    t4 = max(t4, -x - y);
  }
  h = read();
  for (int i = 1; i <= h; ++i) {
    x = read(), y = read();
    int t = max(t1 - (x + y), t2 - (x - y));
    t = max(t, t3 - (-x + y));
    t = max(t, t4 - (-x - y));
    if (t < ans) ans = t, p = i;
  }
  printf("%d\n%d", ans, p);
  return 0;
}
