import java.util.*;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	}
} import java.util.*; util.* java import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	}
} Main public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	} main {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	} int i i j j k; k Scanner sc = new Scanner(in); sc new Scanner(in) int n = parseInt(sc.next()); n parseInt(sc.next()) parseInt sc.next() sc.next sc int[] t = new int[n+1]; t new int[n+1] n+1 n 1 int[] x = new int[n+1]; x new int[n+1] n+1 n 1 int[] y = new int[n+1]; y new int[n+1] n+1 n 1 for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		} i = 1; i = 1 i 1 i <= n i n i++ i++ i {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		} {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		} t[i] = parseInt(sc.next()) t[i] t i parseInt(sc.next()) parseInt sc.next() sc.next sc x[i] = parseInt(sc.next()) x[i] x i parseInt(sc.next()) parseInt sc.next() sc.next sc y[i] = parseInt(sc.next()) y[i] y i parseInt(sc.next()) parseInt sc.next() sc.next sc sc.close() sc.close sc int dt=0; dt 0 int dxy=0; dxy 0 boolean f = true; f true for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		} i = 0; i = 0 i 0 i < n i n i++ i++ i {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		} {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		} dt = t[i+1] - t[i] dt t[i+1] - t[i] t[i+1] t i+1 i 1 t[i] t i dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]) dxy abs(x[i+1] - x[i])+abs(y[i+1] - y[i]) abs(x[i+1] - x[i]) abs x[i+1] - x[i] x[i+1] x i+1 i 1 x[i] x i abs(y[i+1] - y[i]) abs y[i+1] - y[i] y[i+1] y i+1 i 1 y[i] y i if(dxy > dt) {
				f = false;
				break;
			} dxy > dt dxy dt {
				f = false;
				break;
			} f = false f false break; if((dt-dxy)%2!=0) {
				f = false;
				break;
			} (dt-dxy)%2!=0 (dt-dxy)%2 (dt-dxy) dt dxy 2 0 {
				f = false;
				break;
			} f = false f false break; out.println(f?"Yes":"No") out.println out f?"Yes":"No" f "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	}
} Main
import java.util.*;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j,k;
		Scanner sc = new Scanner(in);
		int n = parseInt(sc.next());
		int[] t = new int[n+1];
		int[] x = new int[n+1];
		int[] y = new int[n+1];
		for (i = 1; i <= n; i++) {
			t[i] = parseInt(sc.next());
			x[i] = parseInt(sc.next());
			y[i] = parseInt(sc.next());
		}
		sc.close();
		int dt=0;
		int dxy=0;
		boolean f = true;
		for (i = 0; i < n; i++) {
			dt = t[i+1] - t[i];
			dxy = abs(x[i+1] - x[i])+abs(y[i+1] - y[i]);
			if(dxy > dt) {
				f = false;
				break;
			}
			if((dt-dxy)%2!=0) {
				f = false;
				break;
			}
		}
		out.println(f?"Yes":"No");
	}
}
