#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 1000000000000000000LL int main(){ int N,M,K; cin>>N>>M>>K; vector x(K); rep(i,K){ cin>>x[i]; x[i]--; } vector f(N,vector(N,false)); rep(i,M){ int u,v; cin>>u>>v; u--,v--; f[u][v] = true; f[v][u] = true; } vector dp(N,vector(1<(N,false))); rep(i,N){ dp[i][1<>l)&1)continue; if(!f[k][l])continue; dp[i][j|(1<