#include <bits/stdc++.h>
using namespace std;
const int INF = (1 << 30) + ((1 << 30) - 1);
int N, M, C, H, mnX = INF, mxX = -INF, mnY = INF, mxY = -INF;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> N >> M >> C;
  for (int i = 0; i < C; i++) {
    int x, y;
    cin >> x >> y;
    mnX = min(x + y, mnX);
    mxX = max(x + y, mxX);
    mnY = min(x - y, mnY);
    mxY = max(x - y, mxY);
  }
  cin >> H;
  int bdist = INF, bidx = -1;
  for (int i = 0; i < H; i++) {
    int x, y;
    cin >> x >> y;
    int cdist = max(max(abs(x + y - mnX), abs(x + y - mxX)),
                    max(abs(x - y - mnY), abs(x - y - mxY)));
    if (cdist < bdist) {
      bdist = cdist;
      bidx = i;
    }
  }
  cout << bdist << '\n' << bidx + 1 << '\n';
  return 0;
}
