#include "bits/stdc++.h" using namespace std; int n,m; int main(){ cin>>n>>m; int box[m][n]; int ans=0; int maxv=0; for (int i = 0; i < m; ++i) { for (int j = 0; j < 3; ++j) { cin>>box[i][j]; } } std::vector data; for(int i=0; i