#include <bits/stdc++.h>
using namespace std;
long long INF = (1LL) << 62;
bool cmp(long long a, long long b) { return a > b; }
int main() {
  long long n, m, c, h, x, y;
  while (cin >> n >> m) {
    cin >> c;
    long long v1, v2, v3, v4;
    v1 = v2 = v3 = v4 = -INF;
    while (c--) {
      cin >> x >> y;
      v1 = max(v1, -x - y);
      v2 = max(v2, x + y);
      v3 = max(v3, -x + y);
      v4 = max(v4, x - y);
    }
    cin >> h;
    long long tmp, ans = INF, ansp = 1;
    for (int i = 1; i <= h; ++i) {
      cin >> x >> y;
      tmp = -INF;
      tmp = max(tmp, x + y + v1);
      tmp = max(tmp, -x - y + v2);
      tmp = max(tmp, x - y + v3);
      tmp = max(tmp, -x + y + v4);
      if (cmp(ans, tmp)) {
        ans = tmp;
        ansp = i;
      }
    }
    cout << ans << endl << ansp << endl;
  }
  return 0;
}
