import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); int m = sc.nextInt(); ArrayList> graph = new ArrayList<>(); for (int i = 0; i < n; i++) { graph.add(new HashSet<>()); } 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); } ArrayDeque deq = new ArrayDeque<>(); for (int i = 0; i < n; i++) { if (graph.get(i).size() == 1) { deq.add(i); } } int count = 0; while (deq.size() > 0) { int x = deq.poll(); if (graph.get(x).size() == 0) { continue; } count++; int y = graph.get(x).iterator().next(); graph.get(y).remove(x); if (graph.get(y).size() == 1) { deq.add(y); } } if (count % 2 == 1) { System.out.println("Yes"); } else { System.out.println("No"); } } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public String next() throws Exception { if (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }