#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  cin >> m >> n;
  int c, h;
  int x, y;
  int a0, a1, a2, a3;
  a0 = a1 = a2 = a3 = -0x7fffffff;
  cin >> c;
  while (c--) {
    cin >> x >> y;
    a0 = max(a0, x + y);
    a1 = max(a1, x - y);
    a2 = max(a2, -x + y);
    a3 = max(a3, -x - y);
  }
  cin >> h;
  int cnt = 1;
  int cntj = 1;
  int min = 0x7fffffff;
  while (h--) {
    cin >> x >> y;
    int tmp = max(max(a0 - x - y, a1 - x + y), max(a2 + x - y, a3 + x + y));
    if (tmp < min) {
      min = tmp;
      cntj = cnt;
    }
    cnt++;
  }
  cout << min << endl << cntj << endl;
  return 0;
}
