import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextInt();
		int infoNum = sc.nextInt();
		long prevKey = 0;
		int prevValue = 0;
		long nextKey = 0;
		int nextValue = 0;
		for(int i = 0; i < infoNum; i++) {
			nextKey = sc.nextLong();
			nextValue = sc.nextInt();
			if(Math.abs(nextKey - prevKey) < Math.abs(nextValue - prevValue)) {
				System.out.println("No");
				return;
			}
			prevKey = nextKey;
			prevValue = nextValue;
		}
		System.out.println("Yes");
	}
}