#include using namespace std; int main(){ int n,m,k;cin>>n>>m>>k; vector x(k);for(auto&e:x)cin>>e,e--; vector> g(n); for(int i=0;i>u>>v; u--;v--; g[u].push_back(v); g[v].push_back(u); } vector f(n,vector(n,1)); for(auto&&e:x){ vector dp(1<(n)); dp[1< f2(n); for(int S=0;S<(1<(n)); for(int S=0;S<(1<>nx&1)continue; ndp[S|(1<