#include <bits/stdc++.h>
using namespace std;
int N, M, n, m, p, ans = INT_MAX, maxa = -INT_MAX, maxb = -INT_MAX,
                   mina = INT_MAX, minb = INT_MAX;
int main() {
  cin >> N >> M;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    maxa = max(maxa, x + y);
    mina = min(mina, x + y);
    maxb = max(maxb, x - y);
    minb = min(minb, x - y);
  }
  cin >> m;
  for (int i = 1; i <= m; i++) {
    int x, y, q = 0;
    scanf("%d%d", &x, &y);
    q = max(q, abs(maxa - x - y));
    q = max(q, abs(x + y - mina));
    q = max(q, abs(maxb - x + y));
    q = max(q, abs(x - y - minb));
    if (q < ans) ans = q, p = i;
  }
  cout << ans << endl << p << endl;
  return 0;
}
