#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, m;
  cin >> n >> m;
  int c;
  cin >> c;
  long max_plus = numeric_limits<long>::min();
  long max_minus = numeric_limits<long>::min();
  long min_plus = numeric_limits<long>::max();
  long min_minus = numeric_limits<long>::max();
  for (int i = 0; i < c; ++i) {
    long x, y;
    cin >> x >> y;
    max_plus = max(x + y, max_plus);
    max_minus = max(x - y, max_minus);
    min_plus = min(x + y, min_plus);
    min_minus = min(x - y, min_minus);
  }
  int h;
  cin >> h;
  int closest = -1;
  long min_dist = numeric_limits<long>::max();
  for (int i = 1; i <= h; ++i) {
    long x, y;
    cin >> x >> y;
    long plus = x + y;
    long minus = x - y;
    long dist = max(max(abs(plus - max_plus), abs(plus - min_plus)),
                    max(abs(minus - max_minus), abs(minus - min_minus)));
    if (dist < min_dist) {
      min_dist = dist;
      closest = i;
    }
  }
  cout << min_dist << endl << closest << endl;
  return 0;
}
