import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); String s[]=bu.readLine().split(" "); int n=Integer.parseInt(s[0]),m=Integer.parseInt(s[1]); ArrayList g[]=new ArrayList[n]; int i,c[]=new int[n]; for(i=0;i(); for(i=0;i pq=new PriorityQueue<>(new Comparator() { @Override public int compare(int[] o1, int[] o2) { if(o1[1]>o2[1]) return 1; else return -1; }}); for(i=0;i0) pq.add(new int[]{x,c[x]}); } } if(ans%2==0) sb.append("No"); else sb.append("Yes"); System.out.println(sb); } }