#include <bits/stdc++.h>
using namespace std;
long long int N, M, C, H, i;
int main() {
  scanf("%lld%lld", &N, &M);
  scanf("%lld", &C);
  long long int t1, t2, aa, ab, ba, bb, conc = 1e18, conct, se = 0;
  for (i = 0; i < C; i++) {
    scanf("%lld%lld", &t1, &t2);
    if (i == 0) {
      aa = t1 + t2;
      ab = t1 - t2;
      ba = -t1 + t2;
      bb = -t1 - t2;
    } else {
      aa = max(t1 + t2, aa);
      ab = max(t1 - t2, ab);
      ba = max(-t1 + t2, ba);
      bb = max(-t1 - t2, bb);
    }
  }
  scanf("%lld", &H);
  for (int i = 0; i < H; i++) {
    long long int conct = 0;
    scanf("%lld%lld", &t1, &t2);
    conct = max(conct, bb + t1 + t2);
    conct = max(conct, t1 - t2 + ba);
    conct = max(conct, -t1 + t2 + ab);
    conct = max(conct, aa - t1 - t2);
    if (conct < conc) {
      conc = conct;
      se = i + 1;
    }
  }
  printf("%lld\n%lld\n", conc, se);
}
