#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N=1e6+10;
const int M=1e3+10;
const int P=998244353;
signed main(){
	freopen(".in","r",stdin);
	freopen(".out","w",stdout);
	int n,m,k;
	cin>>n>>m>>k;
	int u,v,w;
	for(int i=1;i<=m;i++)
	{
		cin>>u>>v>>w;
	}
	int s;
	for(int i=1;i<=k;i++)
	{
		cin>>s;
	}
	cout<<12314;
	return 0; //must return
}

