import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String ans = "Yes"; ans "Yes" int p_t = 0; p_t 0 int p_x = 0; p_x 0 int p_y = 0; p_y 0 for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        } 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 diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        } 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 diff = Math.abs(x-p_x) + Math.abs(y-p_y); diff Math.abs(x-p_x) + Math.abs(y-p_y) Math.abs(x-p_x) Math.abs Math x-p_x x p_x Math.abs(y-p_y) Math.abs Math y-p_y y p_y if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            } diff > t-p_t || Math.abs(t-p_t - diff)%2==1 diff > t-p_t diff t-p_t t p_t Math.abs(t-p_t - diff)%2==1 Math.abs(t-p_t - diff)%2 Math.abs(t-p_t - diff) Math.abs Math t-p_t - diff t-p_t - diff t p_t diff 2 1 {
                ans = "No";
                break;
            } ans = "No" ans "No" break; p_t = t p_t t p_x = x p_x x p_y = y p_y y System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        
        String ans = "Yes";
        
        int p_t = 0;
        int p_x = 0;
        int p_y = 0;
        
        for(int i = 0; i < n; i++){
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            int diff = Math.abs(x-p_x) + Math.abs(y-p_y);
            if(diff > t-p_t || Math.abs(t-p_t - diff)%2==1){
                ans = "No";
                break;
            }
            p_t = t;
            p_x = x;
            p_y = y;
        }
        System.out.println(ans);
    }
}
