#include <bits/stdc++.h>
const int MAX = 1e5 + 5;
const int MAX_V = 1e9 + 1;
const int INF = 2e9 + 500;
const double M = 4e18;
using namespace std;
const int MOD = 1e9 + 7;
const double eps = 0.000000001;
long long n, m, c, h;
long long x[5] = {0, MAX_V};
long long dismin[5], dismax[5];
long long cal(long long x1, long long x2, long long y1, long long y2) {
  return abs(x1 - x2) + abs(y1 - y2);
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m >> c;
  fill(dismin, dismin + 5, INF);
  fill(dismax, dismax + 5, -INF);
  for (long long i = 1; i <= c; i++) {
    long long p, q;
    cin >> p >> q;
    for (int j = 0; j < 2; j++) {
      dismin[j] = min(dismin[j], abs(p - x[j]) + q);
      dismax[j] = max(dismax[j], abs(p - x[j]) + q);
    }
  }
  cin >> h;
  long long an = INF, annum = 0;
  for (long long t = 1; t <= h; t++) {
    long long p, q;
    cin >> p >> q;
    long long lin = 0;
    for (long long j = 0; j < 2; j++) {
      lin = max(lin, abs(cal(x[j], p, 0, q) - dismin[j]));
      lin = max(lin, abs(cal(x[j], p, 0, q) - dismax[j]));
    }
    if (lin < an) {
      an = lin;
      annum = t;
    }
  }
  cout << an << "\n" << annum;
  return 0;
}
