#include <bits/stdc++.h>
using namespace std;
int main() {
  int m1 = -2.1e9, m2 = -2.1e9, m3 = -2.1e9, m4 = -2.1e9, n, m, x, y, c, h,
      ans = -(-2.1e9), cur, pos;
  cin >> n >> m >> c;
  while (c--)
    scanf("%d%d", &x, &y), m1 = max(m1, x + y), m2 = max(m2, x - y),
                           m3 = max(m3, y - x), m4 = max(m4, -x - y);
  cin >> h;
  for (int i = 1; i <= h; i++) {
    scanf("%d%d", &x, &y);
    cur = max(m1 - x - y, max(m2 - x + y, max(m3 + x - y, m4 + x + y)));
    if (cur < ans) ans = cur, pos = i;
  }
  cout << ans << endl << pos << endl;
  return 0;
}
