#include #include using namespace std; int b[1000]; int main() { ifstream fin("bdz.in"); int N, M, i; int p, q, j; fin>>N; fin>>M; for(i = 1; i < M+1; i++){ fin>>j>>p>>q; do { b[p] = b[p] + j; p++; } while (p max) max = b[i]; ofstream fout("bdz.out"); if (max%64 == 0) fout<