#include <bits/stdc++.h>
using namespace std;
struct go {
  long long x, y;
};
signed main() {
  long long n;
  cin >> n;
  vector<go> a(n);
  vector<long long> c(n), k(n);
  vector<long long> from(n);
  for (long long i = 0; i < n; ++i) from[i] = i;
  for (go& i : a) cin >> i.x >> i.y;
  for (long long& i : c) cin >> i;
  for (long long& i : k) cin >> i;
  vector<bool> used(n, 0);
  vector<long long> ans;
  vector<go> e;
  long long cost = 0;
  set<pair<long long, long long>> s;
  for (long long iter = 0; iter < n; ++iter) {
    for (long long i = 0; i < n; ++i) {
      if (!used[i]) s.insert({c[i], i});
    }
    auto x = *s.begin();
    s.clear();
    long long i = x.second;
    cost += c[i];
    if (from[i] == i) {
      ans.push_back(i + 1);
    } else
      e.push_back({i + 1, from[i] + 1});
    used[i] = 1;
    for (long long to = 0; to < n; ++to) {
      if (!used[to] && c[to] > (k[i] + k[to]) * (abs(a[i].x - a[to].x) +
                                                 abs(a[i].y - a[to].y)))
        from[to] = i, c[to] = (k[i] + k[to]) *
                              (abs(a[i].x - a[to].x) + abs(a[i].y - a[to].y));
    }
  }
  cout << cost << "\n" << ans.size() << '\n';
  for (long long i : ans) cout << i << " ";
  cout << "\n" << e.size() << "\n";
  for (go i : e) cout << i.x << " " << i.y << '\n';
}
