import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] t = new int[N+1];
        t[0] = 0;
        int x = 0;
        int y = 0;
        int X;
        int Y;
        String ans = "Yes";
        
        for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } 
        
        System.out.println(ans);
        
        
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] t = new int[N+1];
        t[0] = 0;
        int x = 0;
        int y = 0;
        int X;
        int Y;
        String ans = "Yes";
        
        for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } 
        
        System.out.println(ans);
        
        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] t = new int[N+1];
        t[0] = 0;
        int x = 0;
        int y = 0;
        int X;
        int Y;
        String ans = "Yes";
        
        for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } 
        
        System.out.println(ans);
        
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] t = new int[N+1];
        t[0] = 0;
        int x = 0;
        int y = 0;
        int X;
        int Y;
        String ans = "Yes";
        
        for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } 
        
        System.out.println(ans);
        
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] t = new int[N+1]; t new int[N+1] N+1 N 1 t[0] = 0 t[0] t 0 0 int x = 0; x 0 int y = 0; y 0 int X; X int Y; Y String ans = "Yes"; ans "Yes" for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } {
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } t[i] = Integer.parseInt(sc.next()) t[i] t i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc X = Integer.parseInt(sc.next()) X Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Y = Integer.parseInt(sc.next()) Y Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            } X + Y > x + y + t[i] - t[i-1] X + Y X Y x + y + t[i] - t[i-1] x + y + t[i] x + y + t[i] x y t[i] t i t[i-1] t i-1 i 1 {
                ans = "No";
                break;
            } ans = "No" ans "No" break; if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            } X + Y == x + y + t[i] - t[i-1] X + Y X Y x + y + t[i] - t[i-1] x + y + t[i] x + y + t[i] x y t[i] t i t[i-1] t i-1 i 1 {
                x = X;
                y = Y;
            } x = X x X y = Y y Y {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            } if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                } (x + y + t[i] - t[i-1] - X - Y) % 2 == 0 (x + y + t[i] - t[i-1] - X - Y) % 2 (x + y + t[i] - t[i-1] - X - Y) X x + y + t[i] - t[i-1] - X - Y x + y + t[i] x + y + t[i] x y t[i] t i t[i-1] t i-1 i 1 X Y 2 0 {
                    x = X;
                    y = Y;
                } x = X x X y = Y y Y {
                    ans = "No";
                    break;
                } ans = "No" ans "No" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int[] t = new int[N+1];
        t[0] = 0;
        int x = 0;
        int y = 0;
        int X;
        int Y;
        String ans = "Yes";
        
        for(int i = 1; i <= N; i++){
            t[i] = Integer.parseInt(sc.next());
            X = Integer.parseInt(sc.next());
            Y = Integer.parseInt(sc.next());
            if(X + Y > x + y + t[i] - t[i-1]) {
                ans = "No";
                break;
            }else if(X + Y == x + y + t[i] - t[i-1]) {
                x = X;
                y = Y;
            }else {
                if((x + y + t[i] - t[i-1] - X - Y) % 2 == 0) {
                    x = X;
                    y = Y;
                }else {
                    ans = "No";
                    break;
                }
            }
        } 
        
        System.out.println(ans);
        
        
    }
}