import java.io.*; import java.util.*; import java.util.function.*; import java.util.stream.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); int m = sc.nextInt(); int start = sc.nextInt() - 1; int goal = sc.nextInt() - 1; List> graph = new ArrayList<>(); for (int i = 0; i < n; i++) { graph.add(new ArrayList<>()); } for (int i = 0; i < m; i++) { int a = sc.nextInt() - 1; int b = sc.nextInt() - 1; graph.get(a).add(b); graph.get(b).add(a); } boolean[] prohibited = new boolean[n]; int u = sc.nextInt(); while (u-- > 0) { prohibited[sc.nextInt() - 1] = true; } Deque deq = new ArrayDeque<>(); deq.add(start); boolean[] visited = new boolean[n]; while (deq.size() > 0) { int idx = deq.poll(); if (visited[idx] || prohibited[idx]) { continue; } visited[idx] = true; deq.addAll(graph.get(idx)); } System.out.println(visited[goal] ? "Yes" : "No"); } } class Scanner { BufferedReader br; StringTokenizer st = new StringTokenizer(""); StringBuilder sb = new StringBuilder(); public Scanner() { try { br = new BufferedReader(new InputStreamReader(System.in)); } catch (Exception e) { } } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public String next() { try { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } } catch (Exception e) { e.printStackTrace(); } finally { return st.nextToken(); } } }