N, M, K = map(int, input().split()) X = list(map(int, input().split())) G = [[] for _ in range(N)] for _ in range(M): u, v = map(int, input().split()) G[u-1].append(v-1) G[v-1].append(u-1) def DP(start): dp = [[False]*N for _ in range(1<= 1 else "No")