import std.stdio;
import std.conv, std.array, std.algorithm, std.string;
import std.math, std.random, std.range, std.datetime;
import std.bigint;
string read(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }

void main(){
	long n = read.to!long;
	long m = read.to!long;
	
	bool[long] xs;
	foreach(i; 0 .. m){
		long a = read.to!long;
		long b = read.to!long;
		xs[a] = !xs[a];
		xs[b] = !xs[b];
		}
	
	string ans = "YES";
	foreach(k; xs.keys) if(xs[k]) ans = "NO";
	
	ans.writeln;
	
	}