#include <bits/stdc++.h>
using namespace std;
int n, m, h, c, x[101010], y[101010], a[101010], b[101010];
int Max[5], Min = 2e9, mini;
int main() {
  Max[1] = Max[2] = Max[3] = Max[4] = -2e9;
  scanf("%d%d", &n, &m);
  scanf("%d", &c);
  for (int i = 1; i <= c; i++) {
    scanf("%d%d", &x[i], &y[i]);
    Max[1] = max(x[i] + y[i], Max[1]);
    Max[2] = max(x[i] - y[i], Max[2]);
    Max[3] = max(-x[i] + y[i], Max[3]);
    Max[4] = max(-x[i] - y[i], Max[4]);
  }
  scanf("%d", &h);
  for (int i = 1; i <= h; i++) {
    scanf("%d%d", &a[i], &b[i]);
    int l[5], Miin = 2e9;
    l[1] = Max[1] - a[i] - b[i];
    l[2] = Max[2] - a[i] + b[i];
    l[3] = Max[3] + a[i] - b[i];
    l[4] = Max[4] + a[i] + b[i];
    Miin = max(max(l[1], l[2]), max(l[3], l[4]));
    if (Miin < Min) {
      Min = Miin;
      mini = i;
    }
  }
  printf("%d\n%d", Min, mini);
  return 0;
}
