#include #define rep(i,n) for(int i=0;i<(n);++i) using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n,m,k; cin >> n >> m >> k; vector x(k); rep(i,k) cin >> x[i],x[i]--; vector> g(n); rep(i,m){ int u,v; cin >> u >> v; u--;v--; g[u].push_back(v); g[v].push_back(u); } vector>> a(k,vector>(n,vector(n,0))); rep(ki,k){ vector> dp(1<(n,0)); dp[1<