import java.util.Scanner;

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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner 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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        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 tt = 0; tt 0 int xx = 0; xx 0 int yy = 0; yy 0 for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        } {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        } int tmpT = t[i] - tt; tmpT t[i] - tt t[i] t i tt int tmpX = Math.abs(x[i] - xx); tmpX Math.abs(x[i] - xx) Math.abs Math x[i] - xx x[i] x i xx int tmpY = Math.abs(y[i] - yy); tmpY Math.abs(y[i] - yy) Math.abs Math y[i] - yy y[i] y i yy if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            } tmpX + tmpY > tmpT tmpX + tmpY tmpX tmpY tmpT {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            } tmpT % 2 != (tmpX + tmpY) % 2 tmpT % 2 tmpT 2 (tmpX + tmpY) % 2 (tmpX + tmpY) tmpX tmpY 2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; tt = t[i] tt t[i] t i xx = x[i] xx x[i] x i yy = y[i] yy y[i] y i 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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        System.out.println("Yes");
    }
} Main
import java.util.Scanner;

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 tt = 0;
        int xx = 0;
        int yy = 0;
        for (int i = 0; i < n; i++) {
            int tmpT = t[i] - tt;
            int tmpX = Math.abs(x[i] - xx);
            int tmpY = Math.abs(y[i] - yy);
            if(tmpX + tmpY > tmpT) {
                System.out.println("No");
                return;
            }
            if(tmpT % 2 != (tmpX + tmpY) % 2) {
                System.out.println("No");
                return;
            }
            tt = t[i];
            xx = x[i];
            yy = y[i];
        }
        System.out.println("Yes");
    }
}