
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc long t[] = new long[n+1]; t new long[n+1] n+1 n 1 long x[] = new long[n+1]; x new long[n+1] n+1 n 1 long y[] = new long[n+1]; y new long[n+1] n+1 n 1 t[0]=0 t[0] t 0 0 x[0]=0 x[0] x 0 0 y[0]=0 y[0] y 0 0 n++ n for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		} {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		} t[i]=sc.nextLong() t[i] t i sc.nextLong() sc.nextLong sc x[i]=sc.nextLong() x[i] x i sc.nextLong() sc.nextLong sc y[i]=sc.nextLong() y[i] y i sc.nextLong() sc.nextLong sc for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		} {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		} long tt= t[i]-t[i-1]; tt t[i]-t[i-1] t[i] t i t[i-1] t i-1 i 1 long xx = Math.abs(x[i]-x[i-1]); xx Math.abs(x[i]-x[i-1]) Math.abs Math x[i]-x[i-1] x[i] x i x[i-1] x i-1 i 1 long yy = Math.abs(y[i]-y[i-1]); yy Math.abs(y[i]-y[i-1]) Math.abs Math y[i]-y[i-1] y[i] y i y[i-1] y i-1 i 1 if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			} tt<xx+yy || (tt-(xx+yy))%2!=0 tt<xx+yy tt xx+yy xx yy (tt-(xx+yy))%2!=0 (tt-(xx+yy))%2 (tt-(xx+yy)) tt (xx+yy) xx yy 2 0 {
				System.out.println("No");
				sc.close();
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc return; System.out.println("Yes") System.out.println System.out System System.out "Yes" sc.close() sc.close sc public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	}
} Main

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		long t[] = new long[n+1];
		long x[] = new long[n+1];
		long y[] = new long[n+1];
		t[0]=0;
		x[0]=0;
		y[0]=0;
		n++;
		for(int i=1; i<n; i++) {
			t[i]=sc.nextLong();
			x[i]=sc.nextLong();
			y[i]=sc.nextLong();
		}
		for(int i=1; i<n; i++) {
			long tt= t[i]-t[i-1];
			long xx = Math.abs(x[i]-x[i-1]);
			long yy = Math.abs(y[i]-y[i-1]);

			if(tt<xx+yy || (tt-(xx+yy))%2!=0) {
				System.out.println("No");
				sc.close();
				return;
			}
		}
		System.out.println("Yes");
		sc.close();
	}
}
