#include <bits/stdc++.h>
using namespace std;
const double Pi = acos((double)-1);
const double Eps = 1E-6;
int read() {
  int $x;
  scanf("%d", &$x);
  return $x;
}
long long sqr(long long $x) { return $x * $x; }
const int oo = 2E9 + 10;
int n, m, c, h, maxt, mint, maxh, minh, result, ps;
int main() {
  n = read();
  m = read();
  c = read();
  maxt = maxh = -oo;
  mint = minh = oo;
  for (int i = 0, $sz = (c); i < $sz; ++i) {
    int x = read(), y = read();
    maxt = max(maxt, x + y);
    mint = min(mint, x + y);
    maxh = max(maxh, x - y);
    minh = min(minh, x - y);
  }
  result = oo;
  ps = 0;
  h = read();
  for (int i = 0, $sz = (h); i < $sz; ++i) {
    int x = read(), y = read();
    int t = x + y, h = x - y;
    int tmp = max(max(t - mint, maxt - t), max(h - minh, maxh - h));
    if (tmp < result) {
      result = tmp;
      ps = i + 1;
    }
  }
  printf("%d\n%d", result, ps);
  return 0;
}
