#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, m, l1 = INT_MIN, r1 = INT_MIN, l2 = INT_MIN, r2 = INT_MIN, c, x,
                 y, p, q, r, s, t, u, v, w;
  cin >> n >> m;
  cin >> c;
  for (int i = 1; i <= c; i++) {
    cin >> x >> y;
    if (-x - y > l1) {
      p = x;
      q = y;
    }
    l1 = max(l1, -x - y);
    if (-x + y > r1) {
      r = x;
      s = y;
    }
    r1 = max(r1, -x + y);
    if (x - y > l2) {
      t = x;
      u = y;
    }
    l2 = max(l2, x - y);
    if (x + y > r2) {
      v = x;
      w = y;
    }
    r2 = max(r2, x + y);
  }
  int h;
  cin >> h;
  long int temp1, temp2, max, min = INT_MAX, pos;
  for (int i = 1; i <= h; i++) {
    cin >> temp1 >> temp2;
    max = abs(abs(temp1 - p) + abs(temp2 - q));
    if (abs(temp1 - r) + abs(temp2 - s) > max)
      max = abs(temp1 - r) + abs(temp2 - s);
    if (abs(temp1 - t) + abs(temp2 - u) > max)
      max = abs(temp1 - t) + abs(temp2 - u);
    if (abs(temp1 - v) + abs(temp2 - w) > max)
      max = abs(temp1 - v) + abs(temp2 - w);
    if (max < min) {
      min = max;
      pos = i;
    }
  }
  cout << min << endl << pos << endl;
  return 0;
}
