#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e5 + 5, mod = 1e9 + 7, mod1 = 1e9 + 9, bit = 60,
                    p = 499;
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long int n, m, c, h, x, y, i, ind,
      ans = LONG_LONG_MAX, curr, pp = LONG_LONG_MAX, pn = LONG_LONG_MAX,
      np = LONG_LONG_MAX, nn = LONG_LONG_MAX;
  cin >> n >> m;
  cin >> c;
  for (i = 1; i <= c; i++) {
    cin >> x >> y;
    pp = min(pp, x + y);
    pn = min(pn, x - y);
    np = min(np, -x + y);
    nn = min(nn, -x - y);
  }
  cin >> h;
  for (i = 1; i <= h; i++) {
    cin >> x >> y;
    curr = max({x + y - pp, x - y - pn, -x + y - np, -x - y - nn});
    if (curr < ans) {
      ans = curr;
      ind = i;
    }
  }
  cout << ans << '\n';
  cout << ind << '\n';
  return 0;
}
