import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        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 curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        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 curX = 0; curX 0 int curY = 0; curY 0 int curT = 0; curT 0 for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        } int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int dX = Math.abs(x - curX); dX Math.abs(x - curX) Math.abs Math x - curX x curX int dY = Math.abs(y - curY); dY Math.abs(y - curY) Math.abs Math y - curY y curY int d = dX + dY; d dX + dY dX dY int dT = Math.abs(t - curT); dT Math.abs(t - curT) Math.abs Math t - curT t curT int diff = dT - d; diff dT - d dT d if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            } d > dT || diff % 2 != 0 d > dT d dT diff % 2 != 0 diff % 2 diff 2 0 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; curT = t curT t curX = x curX x curY = y curY y 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 curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        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 curX = 0;
        int curY = 0;
        int curT = 0;
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            int dX = Math.abs(x - curX);
            int dY = Math.abs(y - curY);
            int d = dX + dY;
            int dT = Math.abs(t - curT);
            int diff = dT - d;
            if (d > dT || diff % 2 != 0) {
                System.out.println("No");
                return;
            }
            
            curT = t;
            curX = x;
            curY = y;
        }
        System.out.println("Yes");
    }
}
