import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    }
} Main public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int prevT = 0; prevT 0 int prevX = 0; prevX 0 int prevY = 0; prevY 0 for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        } int i = 0; int i = 0; i 0 i < t i t i++ i++ i {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        } {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        } int curT = sc.nextInt(); curT sc.nextInt() sc.nextInt sc int curX = sc.nextInt(); curX sc.nextInt() sc.nextInt sc int curY = sc.nextInt(); curY sc.nextInt() sc.nextInt sc int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY); dist Math.abs(curX - prevX) + Math.abs(curY - prevY) Math.abs(curX - prevX) Math.abs Math curX - prevX curX prevX Math.abs(curY - prevY) Math.abs Math curY - prevY curY prevY int diffT = curT - prevT; diffT curT - prevT curT prevT if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            } diffT < dist || dist % 2 != diffT % 2 diffT < dist diffT dist dist % 2 != diffT % 2 dist % 2 dist 2 diffT % 2 diffT 2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; prevT = curT prevT curT prevX = curX prevX curX prevY = curY prevY curY 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[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int prevT = 0;
        int prevX = 0;
        int prevY = 0;

        for(int i = 0; i < t; i++) {
            int curT = sc.nextInt();
            int curX = sc.nextInt();
            int curY = sc.nextInt();

            int dist = Math.abs(curX - prevX) + Math.abs(curY - prevY);
            int diffT = curT - prevT;
            if(diffT < dist || dist % 2 != diffT % 2) {
                System.out.println("No");
                return;
            }

            prevT = curT;
            prevX = curX;
            prevY = curY;
        }


        
        System.out.println("Yes");
    }
}
