#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x3f3f3f3f3f3f3f3f;
int main() {
  while (~scanf("%*d%*d")) {
    int n, m;
    scanf("%d", &n);
    long long Max[4], x, y;
    memset(Max, -INF, sizeof(Max));
    for (int i = 1; i <= n; i++) {
      scanf("%I64d%I64d", &x, &y);
      Max[0] = max(Max[0], x + y);
      Max[1] = max(Max[1], x - y);
      Max[2] = max(Max[2], -x + y);
      Max[3] = max(Max[3], -x - y);
    }
    scanf("%d", &m);
    long long ans = INF;
    int id = 0;
    for (int i = 1; i <= m; i++) {
      scanf("%I64d%I64d", &x, &y);
      long long t = -INF;
      t = max(t, Max[0] - x - y);
      t = max(t, Max[1] - x + y);
      t = max(t, Max[2] + x - y);
      t = max(t, Max[3] + x + y);
      if (t < ans) ans = t, id = i;
    }
    printf("%I64d\n%d\n", ans, id);
  }
  return 0;
}
