#include <bits/stdc++.h>
using namespace std;
const string YESNO[2] = {"NO", "YES"};
const string YesNo[2] = {"No", "Yes"};
const string yesno[2] = {"no", "yes"};
void YES(bool t = 1) { cout << YESNO[t] << '\n'; }
void Yes(bool t = 1) { cout << YesNo[t] << '\n'; }
void yes(bool t = 1) { cout << yesno[t] << '\n'; }
template <class T, class S>
inline bool chmax(T &a, const S &b) {
  return (a < b ? a = b, 1 : 0);
}
template <class T, class S>
inline bool chmin(T &a, const S &b) {
  return (a > b ? a = b, 1 : 0);
}
int scan() { return getchar(); }
void scan(int &a) { cin >> a; }
void scan(long long &a) { cin >> a; }
void scan(char &a) { cin >> a; }
void scan(double &a) { cin >> a; }
void scan(string &a) { cin >> a; }
template <class T, class S>
void scan(pair<T, S> &p) {
  scan(p.first), scan(p.second);
}
template <class T>
void scan(vector<T> &);
template <class T>
void scan(vector<T> &a) {
  for (auto &i : a) scan(i);
}
template <class T>
void scan(T &a) {
  cin >> a;
}
void IN() {}
template <class Head, class... Tail>
void IN(Head &head, Tail &...tail) {
  scan(head);
  IN(tail...);
}
using i64 = long long;
using u64 = unsigned long long;
using u32 = unsigned;
constexpr int inf = 1e9 + 7;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int t;
  t = 1;
  while (t--) {
    int n, m;
    IN(n, m);
    vector<long long int> s(4, 1e18);
    int c;
    IN(c);
    while (c--) {
      long long int x, y;
      IN(x, y);
      s[0] = min(s[0], x + y);
      s[1] = min(s[1], x - y);
      s[2] = min(s[2], -x + y);
      s[3] = min(s[3], -x - y);
    }
    long long int ans = 1e18;
    int aid = -1;
    int h;
    IN(h);
    for (int i = 1; i <= h; ++i) {
      long long int x, y;
      IN(x, y);
      long long int t =
          max({x + y - s[0], x - y - s[1], -x + y - s[2], -x - y - s[3]});
      if (t < ans) {
        ans = t;
        aid = i;
      }
    }
    cout << ans << '\n' << aid << '\n';
  }
  return 0;
}
