import std.stdio, std.string, std.conv, std.array, std.algorithm;
import std.uni, std.range, std.math, std.container, std.datetime;
import core.bitop, std.typetuple, std.typecons;

immutable long MOD = 1_000_000_007;
alias tie = TypeTuple;
alias triplet = Tuple!(int, int, int);

void main(){
    int N, M, a, b;
    readVars(N, M);

    auto ncnt = new int[](N);

    foreach(i ; 0 .. M){
        readVars(a, b);
        a--; b--;
        ncnt[a]++;
        ncnt[b]++;
    }

    foreach(i ; 0 .. N){
        if (ncnt[i] & 1) {
            writeln("NO");
            return;
        }
    }

    writeln("YES");
}


void readVars(T...)(auto ref T args){
    auto line = readln.split;
    foreach(ref arg ; args){
        arg = line.front.to!(typeof(arg));
        line.popFront;
    }
    if(!line.empty){
        throw new Exception("args num < input num");
    }
}