#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	int n,m,k;
	cin>>n>>m>>k;
	for(int i=1;i<=m;i++){
		int u,v,w;
		cin>>u>>v>>w;
	}
	while(k--){
		int c;
		cin>>c;
		for(int i=1;i<=n;i++){
			int a;
			cin>>a;
		}
	} 
	fclose(stdin);
	fclose(stdout);
	return 0;
}
