#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int main() {
  long long int n, m;
  cin >> n >> m;
  long long int max1 = 0, max2 = 0, max3 = 0, max4 = 0;
  int c;
  cin >> c;
  long long int x, y;
  long long int cha;
  for (int a = 0; a < c; a++) {
    if (a == 0) {
      cin >> x >> y;
      max1 = x + y;
      max2 = y - x;
      max3 = -1 * y - x;
      max4 = x - y;
    } else {
      cin >> x >> y;
      cha = x + y;
      if (cha > max1) max1 = cha;
      cha = y - x;
      if (cha > max2) max2 = cha;
      cha = -1 * y - x;
      if (cha > max3) max3 = cha;
      cha = x - y;
      if (cha > max4) max4 = cha;
    }
  }
  long long int now_max[100005];
  long long int locamax = m + n;
  int h;
  cin >> h;
  for (int a = 0; a < h; a++) {
    cin >> x >> y;
    cha = x + y;
    now_max[a] = max(max(max1 - (x + y), max2 - (y - x)),
                     max(max3 - (-1 * y - x), max4 - (x - y)));
  }
  long long int min_ = now_max[0];
  int min_loca = 1;
  for (int a = 1; a < h; a++)
    if (min_ > now_max[a]) {
      min_loca = a + 1;
      min_ = now_max[a];
    }
  cout << min_ << endl << min_loca << endl;
  return 0;
}
