#include <bits/stdc++.h>
using namespace std;
long long p1, p2, p3, p4;
void shit(long long first, long long second) {
  p1 = max(p1, first + second);
  p2 = min(p2, first + second);
  p3 = max(p3, first - second);
  p4 = min(p4, first - second);
}
int main() {
  long long n, m;
  while (cin >> n >> m) {
    long long c, first, second, h;
    p1 = p3 = -1e15;
    p2 = p4 = 1e15;
    cin >> c;
    for (long long i = 0; i < c; ++i) {
      scanf("%I64d %I64d", &first, &second);
      shit(first, second);
    }
    cin >> h;
    long long ans = 1e15, bestind = 0, nnn = 0;
    while (h--) {
      scanf("%I64d %I64d", &first, &second);
      long long now = 0;
      now = max(now, abs(first + second - p1));
      now = max(now, abs(first + second - p2));
      now = max(now, abs(first - second - p3));
      now = max(now, abs(first - second - p4));
      if (ans > now) {
        ans = now;
        bestind = nnn + 1;
      }
      nnn++;
    }
    cout << ans << endl << bestind << endl;
  }
}
