#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, c, h;
  cin >> n >> m;
  cin >> c;
  long long min_pair = LLONG_MAX, max_pair = LLONG_MIN, min_diff = LLONG_MAX,
            max_diff = LLONG_MIN;
  for (int i = 0; i < c; i++) {
    long long a, b;
    cin >> a >> b;
    min_pair = min(min_pair, a + b);
    max_pair = max(max_pair, a + b);
    min_diff = min(min_diff, a - b);
    max_diff = max(max_diff, a - b);
  }
  cin >> h;
  long long res = LLONG_MAX, pos;
  for (int i = 0; i < h; i++) {
    long long a, b;
    cin >> a >> b;
    long long aux = max(max(max(abs(a + b - min_pair), abs(a + b - max_pair)),
                            abs(a - b - min_diff)),
                        abs(a - b - max_diff));
    if (aux < res) {
      res = aux;
      pos = i + 1;
    }
  }
  cout << res << '\n' << pos << '\n';
  return 0;
}
