#include <bits/stdc++.h>
using namespace std;
const int inf = (1LL << 31) - 1;
int n, m;
int c, h;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m;
  cin >> c;
  int xmin = inf, ymin = inf;
  int xmax = -inf, ymax = -inf;
  for (int i = 1; i <= c; i++) {
    int x, y;
    cin >> x >> y;
    xmin = min(xmin, x - y);
    xmax = max(xmax, x - y);
    ymin = min(ymin, x + y);
    ymax = max(ymax, x + y);
  }
  cin >> h;
  int mn = inf, id;
  for (int i = 1; i <= h; i++) {
    int x, y;
    cin >> x >> y;
    int cur = -inf;
    cur = max(cur, abs(x - y - xmin));
    cur = max(cur, abs(x + y - ymin));
    cur = max(cur, abs(x - y - xmax));
    cur = max(cur, abs(x + y - ymax));
    if (mn > cur) {
      mn = cur;
      id = i;
    }
  }
  cout << mn << "\n" << id;
  return 0;
}
