#pragma GCC optimize("Ofast") #include using namespace std; typedef long long int ll; typedef unsigned long long ull; mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); ll myRand(ll B) { return (ull)rng() % B; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n,m; cin >> n >> m; vector a(n); for(int i=0;i> a[i]; } vector> g(n); vector b(n); for(int i=0;i> x >> y; x--; y--; g[x].push_back(y); g[y].push_back(x); } cin >> m; while(m--){ int x; cin >> x; x--; b[x]++; } vector v(n); for(int i=0;i res; for(int i=0;i