#include <bits/stdc++.h>
using namespace std;
int n, m, c, x, y, h, t, miii, mx1 = -2000000000, mx2 = -2000000000,
                               mi1 = 2000000000, mi2 = 2000000000,
                               mii = 2000000000;
int main() {
  cin >> n >> m >> c;
  for (int i = 1; i <= c; i++) {
    scanf("%d%d", &x, &y);
    mx1 = max(mx1, x + y);
    mi1 = min(mi1, x + y);
    mx2 = max(mx2, x - y);
    mi2 = min(mi2, x - y);
  }
  cin >> h;
  for (int i = 1; i <= h; i++) {
    scanf("%d%d", &x, &y);
    t = max(max(abs(mx1 - (x + y)), abs(mi1 - (x + y))),
            max(abs(mx2 - (x - y)), abs(mi2 - (x - y))));
    if (mii > t) {
      mii = t;
      miii = i;
    }
  }
  cout << mii << endl << miii;
  return 0;
}
