void main(){ import std.stdio, std.string, std.conv, std.algorithm; int n, m; rd(n, m); auto deg=new int[](n); foreach(_; 0..m){ int a, b; rd(a, b); deg[a]++; deg[b]++; } auto ev=reduce!((res, e)=>res+(e%2==0))(0, deg); auto od=reduce!((res, e)=>res+(e&1))(0, deg); if(ev==n || od==2) writeln("YES"); else writeln("NO"); } void rd(T...)(ref T x){ import std.stdio, std.string, std.conv; auto l=readln.split; foreach(i, ref e; x){ e=l[i].to!(typeof(e)); } }