#include <bits/stdc++.h>
using namespace std;
int Amin = INT_MAX, Amax = -INT_MAX;
int Bmin = INT_MAX, Bmax = -INT_MAX;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  cin >> n;
  int x, y;
  for (int i = 1; i <= n; i++) {
    cin >> x >> y;
    Amin = min(Amin, x + y), Amax = max(Amax, x + y);
    Bmin = min(Bmin, x - y), Bmax = max(Bmax, x - y);
  }
  cin >> m;
  int r = INT_MAX, ind = 1;
  for (int i = 1; i <= m; i++) {
    cin >> x >> y;
    int mayor = max(abs(x + y - Amin), abs(x + y - Amax));
    mayor = max(mayor, max(abs(x - y - Bmin), abs(x - y - Bmax)));
    if (r > mayor) {
      ind = i;
      r = mayor;
    }
  }
  cout << r << "\n" << ind << "\n";
  return 0;
}
