#include <bits/stdc++.h>
long long n, h;
int main() {
  scanf("%I64d%I64d", &n, &h);
  scanf("%I64d", &n);
  long long max1 = -LLONG_MAX, max2 = -LLONG_MAX, min1 = LLONG_MAX,
            min2 = LLONG_MAX;
  for (long long i = 0, x, y; i < n; ++i) {
    scanf("%I64d%I64d", &x, &y);
    max1 = std::max(max1, x + y);
    min1 = std::min(min1, x + y);
    max2 = std::max(max2, x - y);
    min2 = std::min(min2, x - y);
  }
  scanf("%I64d", &h);
  long long min = LLONG_MAX, ans = 0;
  for (long long i = 1, x, y; i <= h; ++i) {
    scanf("%I64d%I64d", &x, &y);
    long long zzh = std::max(std::max(max1 - x - y, x + y - min1),
                             std::max(max2 + y - x, x - y - min2));
    if (zzh < min) {
      min = zzh;
      ans = i;
    }
  }
  return printf("%I64d\n%I64d\n", min, ans), 0;
}
