#include <bits/stdc++.h>
using namespace std;
int N, M, C, H;
long long inputX, inputY;
long long maxLoc00 = 1LL << 63, maxLoc01 = 1LL << 63, maxLoc10 = 1LL << 63,
          maxLoc11 = 1LL << 63;
long long minDist, minH;
long long restDist;
int main() {
  cin >> N >> M;
  cin >> C;
  while (C--) {
    cin >> inputX >> inputY;
    maxLoc00 = max(maxLoc00, inputX + inputY);
    maxLoc01 = max(maxLoc01, inputX - inputY);
    maxLoc10 = max(maxLoc10, -inputX + inputY);
    maxLoc11 = max(maxLoc11, -inputX - inputY);
  }
  cin >> H;
  minDist = 1LL << 62;
  for (int i = 1; i <= H; i++) {
    cin >> inputX >> inputY;
    restDist = max(max(maxLoc00 - inputX - inputY, maxLoc01 - inputX + inputY),
                   max(maxLoc10 + inputX - inputY, maxLoc11 + inputX + inputY));
    if (restDist < minDist) {
      minDist = restDist;
      minH = i;
    }
  }
  cout << minDist << ' ' << minH << endl;
  return 0;
}
