import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] a = new int[n];
        int[] b = new int[n];
        for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        }
        for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        return;

    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] a = new int[n];
        int[] b = new int[n];
        for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        }
        for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        return;

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] a = new int[n];
        int[] b = new int[n];
        for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        }
        for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        return;

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] a = new int[n];
        int[] b = new int[n];
        for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        }
        for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        return;

    } 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[] a = new int[n]; a new int[n] n int[] b = new int[n]; b new int[n] n for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        } {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        } t[i] = Math.abs(sc.nextInt()) t[i] t i Math.abs(sc.nextInt()) Math.abs Math sc.nextInt() sc.nextInt sc a[i] = Math.abs(sc.nextInt()) a[i] a i Math.abs(sc.nextInt()) Math.abs Math sc.nextInt() sc.nextInt sc if(i>0) a[i] = Math.abs(a[i] - a[i-1]); i>0 i 0 a[i] = Math.abs(a[i] - a[i-1]) a[i] a i Math.abs(a[i] - a[i-1]) Math.abs Math a[i] - a[i-1] a[i] a i a[i-1] a i-1 i 1 b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc if(i>0) b[i] = Math.abs(b[i] - b[i-1]); i>0 i 0 b[i] = Math.abs(b[i] - b[i-1]) b[i] b i Math.abs(b[i] - b[i-1]) Math.abs Math b[i] - b[i-1] b[i] b i b[i-1] b i-1 i 1 if(i>0) t[i] = Math.abs(t[i] - t[i-1]); i>0 i 0 t[i] = Math.abs(t[i] - t[i-1]) t[i] t i Math.abs(t[i] - t[i-1]) Math.abs Math t[i] - t[i-1] t[i] t i t[i-1] t i-1 i 1 for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        } {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        } if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            } a[i]+b[i] > t[i] a[i]+b[i] a[i] a i b[i] b i t[i] t i {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            } (a[i]+b[i])%2==t[i]%2 (a[i]+b[i])%2 (a[i]+b[i]) a[i] a i b[i] b i 2 t[i]%2 t[i] t i 2 continue; {
                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" return; String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] t = new int[n];
        int[] a = new int[n];
        int[] b = new int[n];
        for(int i = 0;i<n; i++) {
            t[i] = Math.abs(sc.nextInt());
            a[i] = Math.abs(sc.nextInt());
            if(i>0) a[i] = Math.abs(a[i] - a[i-1]);
            b[i] = sc.nextInt();
            if(i>0) b[i] = Math.abs(b[i] - b[i-1]);
            if(i>0) t[i] = Math.abs(t[i] - t[i-1]);
        }
        for(int i = 0; i<n; i++) {
            //System.out.println(i);
            if(a[i]+b[i] > t[i]) {
                System.out.println("No");
                return;
            }
            if((a[i]+b[i])%2==t[i]%2) continue;
            else {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        return;

    }
}