import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long ct = 0; ct 0 long cx = 0; cx 0 long cy = 0; cy 0 boolean ans = true; ans true for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        } {
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        } long ti = (long)sc.nextInt(); ti (long)sc.nextInt() sc.nextInt sc long xi = (long)sc.nextInt(); xi (long)sc.nextInt() sc.nextInt sc long yi = (long)sc.nextInt(); yi (long)sc.nextInt() sc.nextInt sc long di = Math.abs(xi-cx)+Math.abs(yi-cy); di Math.abs(xi-cx)+Math.abs(yi-cy) Math.abs(xi-cx) Math.abs Math xi-cx xi cx Math.abs(yi-cy) Math.abs Math yi-cy yi cy if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            } ti-ct < di || (ti-ct)%2 != di%2 ti-ct < di ti-ct ti ct di (ti-ct)%2 != di%2 (ti-ct)%2 (ti-ct) ti ct 2 di%2 di 2 {
                ans = false;
            } ans = false ans false ct = ti ct ti cx = xi cx xi cy = yi cy yi if(ans) System.out.println("Yes");
        else    System.out.println("No"); ans System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextInt();
        long ct = 0;
        long cx = 0; 
        long cy = 0;
        boolean ans = true;
        for(int i = 0;i < N;i++){
            long ti = (long)sc.nextInt();
            long xi = (long)sc.nextInt();
            long yi = (long)sc.nextInt();
            long di = Math.abs(xi-cx)+Math.abs(yi-cy);
            if(ti-ct < di || (ti-ct)%2 != di%2){
                ans = false;
            }
            ct = ti;
            cx = xi;
            cy = yi;
        }
        if(ans) System.out.println("Yes");
        else    System.out.println("No");
    }
}