#pragma GCC target("avx") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #include using namespace std; typedef bitset<1030301> B; int main(){ int n, m; cin >> n >> m; vector a(n), b(n), c(n); vector x(m), y(m), z(m); for (int i=0; i> a[i] >> b[i] >> c[i]; } for (int i=0; i> x[i] >> y[i] >> z[i]; } B moto; for (int i=0; i> abs(x[i] + y[i] * 101 + z[i] * 101 * 101))).count()); } cout << ans << '\n'; }