#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, p, r;
  long long a1, a2, a3, a4;
  bool first = true;
  cin >> n >> m;
  cin >> p;
  for (int i = 1; i <= p; i++) {
    long long x, y;
    cin >> x >> y;
    if (first) {
      first = false;
      a1 = x + y;
      a2 = -x + y;
      a3 = -x - y;
      a4 = x - y;
    } else {
      a1 = max(a1, x + y);
      a2 = max(a2, -x + y);
      a3 = max(a3, -x - y);
      a4 = max(a4, x - y);
    }
  }
  cin >> r;
  long long dis = m + n + 1, o;
  for (int i = 1; i <= r; i++) {
    long long x, y, t;
    cin >> x >> y;
    t = max(max(x + y + a3, -x - y + a1), max(-x + y + a4, x - y + a2));
    if (t < dis) {
      o = i;
      dis = t;
    }
  }
  cout << dis << endl;
  cout << o << endl;
  return 0;
}
