#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, a1, a2, a3, a4, x, y, mx, m0 = 10000000000;
  int c, h, i, sel;
  cin >> n >> m >> c;
  for (i = 0; i < c; i++) {
    cin >> x >> y;
    if (i == 0) {
      a1 = x + y;
      a2 = x - y;
      a3 = -x - y;
      a4 = -x + y;
    } else {
      a1 = max(a1, x + y);
      a2 = max(a2, x - y);
      a3 = max(a3, -x - y);
      a4 = max(a4, -x + y);
    }
  }
  cin >> h;
  for (i = 1; i <= h; i++) {
    cin >> x >> y;
    mx = max(max(a1 - x - y, a2 - x + y), max(a3 + x + y, a4 + x - y));
    if (mx < m0) {
      m0 = mx;
      sel = i;
    }
  }
  printf("%lld\n%d\n", m0, sel);
}
