import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] t = new int[n]; t new int[n] n int[] x = new int[n]; x new int[n] n int[] y = new int[n]; y new int[n] n for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } t[i] = sc.nextInt() t[i] t i sc.nextInt() sc.nextInt sc x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc int currentX = 0; currentX 0 int currentY = 0; currentY 0 int currentTime = 0; currentTime 0 for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        } {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        } int restOfTime = (t[i]-currentTime); restOfTime (t[i]-currentTime) t[i] t i currentTime int restOfX = Math.abs(x[i]-currentX); restOfX Math.abs(x[i]-currentX) Math.abs Math x[i]-currentX x[i] x i currentX int restOfY = Math.abs(y[i]-currentY); restOfY Math.abs(y[i]-currentY) Math.abs Math y[i]-currentY y[i] y i currentY int subtract = restOfTime - (restOfX + restOfY); subtract restOfTime - (restOfX + restOfY) restOfTime (restOfX + restOfY) restOfX restOfY if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            } subtract < 0 || subtract % 2 != 0 subtract < 0 subtract 0 subtract % 2 != 0 subtract % 2 subtract 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; 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) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] x = new int[n];
        int[] y = new int[n];
        for (int i = 0; i < n; i++) {
            t[i] = sc.nextInt();
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int currentX = 0;
        int currentY = 0;
        int currentTime = 0;
        for (int i = 0; i < n; i++) {
            int restOfTime = (t[i]-currentTime);
            int restOfX = Math.abs(x[i]-currentX);
            int restOfY = Math.abs(y[i]-currentY);
            int subtract = restOfTime - (restOfX + restOfY);
            if(subtract < 0 || subtract % 2 != 0) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}