#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n>>m; memset(co,0,sizeof(co)); for(int i=0;i>x>>y>>z; co[x][y]=z; } vector v(n); iota(v.begin(),v.end(),0); int ans=0; do{ int res=0; for(int i=0;i