#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,M,K; cin >> N >> M >> K; vector X(K); for(auto &x : X) cin >> x,x--; vector> Graph(N); for(int i=0; i> u >> v; u--; v--; Graph.at(u).push_back(v); Graph.at(v).push_back(u); } int n2 = 1< ones(n2); for(int i=0; i> ok(N,vector(N)); int idx = 0; for(auto &start : X){ vector dp(N,vector(n2)); dp.at(start).at(1<