#include<bits/stdc++.h>
using namespace std;
int n,m,k,a[101000],b[101000];
signed main(){
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	cin>>n>>m>>k;
	for(int i=1;i<=m;++i){
		scanf("%d%d%d",&a[i],&b[i],&c[i]);
	}
	for(int i=1;i<=n;++i){
		scanf("%d",&b[i]);
	}
	cout<<"0";
	return 0;
}
