import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int xx = 0; xx 0 int yy = 0; yy 0 int time = 0; time 0 for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		} {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		} int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int d = Math.abs(x - xx) + Math.abs(y - yy); d Math.abs(x - xx) + Math.abs(y - yy) Math.abs(x - xx) Math.abs Math x - xx x xx Math.abs(y - yy) Math.abs Math y - yy y yy int spent = t - time; spent t - time t time if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    } d > spent || (spent - d) % 2 != 0 d > spent d spent (spent - d) % 2 != 0 (spent - d) % 2 (spent - d) spent d 2 0 {
		        System.out.println("No");
		        return;
		    } System.out.println("No") System.out.println System.out System System.out "No" return; xx = x xx x yy = y yy y time = t time t System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int xx = 0;
		int yy = 0;
		int time = 0;
		for (int i = 0; i < n; i++) {
		    int t = sc.nextInt();
		    int x = sc.nextInt();
		    int y = sc.nextInt();
		    int d = Math.abs(x - xx) + Math.abs(y - yy);
		    int spent = t - time;
		    if (d > spent || (spent - d) % 2 != 0) {
		        System.out.println("No");
		        return;
		    }
		    xx = x;
		    yy = y;
		    time = t;
		}
		System.out.println("Yes");
	}
} Main
import java.util.*;

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