from collections import deque N,M=map(int,input().split()) S,G=map(int,input().split()) E=[[] for _ in range(N+1)] for _ in range(M): F,T=map(int,input().split()) E[F].append(T) E[T].append(F) U=int(input()) I=list(map(int,input().split())) P=[0]*(N+1) for i in I: P[i]=1 Q=deque([S]) X=[0]*(N+1); X[S]=1 while Q: u=Q.popleft() for v in E[u]: if P[v]==0 and X[v]==0: X[v]=1 Q.append(v) print("Yes" if X[T] else "No")