import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	}

} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	}

} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	} main {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn int nt = 0 nt 0 nx = 0 nx 0 ny = 0; ny 0 boolean ans = true; ans true for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		} int i = 0; int i = 0; i 0 i < N && ans i < N i N ans i++ i++ i {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		} {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		} int t = scn.nextInt(); t scn.nextInt() scn.nextInt scn int x = scn.nextInt(); x scn.nextInt() scn.nextInt scn int y = scn.nextInt(); y scn.nextInt() scn.nextInt scn if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			} t-nt < Math.abs(x-nx) + Math.abs(y-ny) t-nt t nt Math.abs(x-nx) + Math.abs(y-ny) Math.abs(x-nx) Math.abs Math x-nx x nx Math.abs(y-ny) Math.abs Math y-ny y ny {
				ans = false;
			} ans = false ans false if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			} ((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1 ((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 ((t-nt) - Math.abs(x-nx) + Math.abs(y-ny)) (t-nt) - Math.abs(x-nx) (t-nt) t nt Math.abs(x-nx) Math.abs Math x-nx x nx Math.abs(y-ny) Math.abs Math y-ny y ny 2 1 {
				ans = false;
			} ans = false ans false System.out.println(ans?"Yes":"No") System.out.println System.out System System.out ans?"Yes":"No" ans "Yes" "No" String[] args args public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	}

} public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int nt = 0,nx = 0, ny = 0;
		boolean ans = true;
		for(int i = 0;i < N && ans;i++) {
			int t = scn.nextInt();
			int x = scn.nextInt();
			int y = scn.nextInt();
			if(t-nt < Math.abs(x-nx) + Math.abs(y-ny)) {
				ans = false;
			}
			if(((t-nt) - Math.abs(x-nx) + Math.abs(y-ny))%2 == 1) {
				ans = false;
			}
		}
		System.out.println(ans?"Yes":"No");
	}

}
