#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n, m;
  vector<int> a(n), b(n), c(n);
  for (int i = 0; i < n; i++) cin >> a[i] >> b[i] >> c[i];
  vector<int> d(m), e(m), f(m);
  for (int i = 0; i < m; i++) cin >> d[i] >> e[i] >> f[i];
  return 0;
}
