import java.util.*;
import java.lang.*;


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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java import java.lang.*; lang.* 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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            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 xg = 0; xg 0 int yg = 0; yg 0 int tg = 0; tg 0 boolean no = false; no false for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        } {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        } int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg)); hun t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg)) t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg)) t[i] t i tg (Math.abs(x[i] - xg) + Math.abs(y[i] - yg)) Math.abs(x[i] - xg) Math.abs Math x[i] - xg x[i] x i xg Math.abs(y[i] - yg) Math.abs Math y[i] - yg y[i] y i yg if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            } hun < 0 || hun % 2 != 0 hun < 0 hun 0 hun % 2 != 0 hun % 2 hun 2 0 {
                no = true;
                break;
            } no = true no true break; {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            } xg = x[i] xg x[i] x i yg = y[i] yg y[i] y i tg = t[i] tg t[i] t i if (no) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } no {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } 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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.*;
import java.lang.*;


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 xg = 0;
        int yg = 0;
        int tg = 0;
        boolean no = false;
        for (int i = 0; i < n; i++) {
            int hun = t[i] - tg - (Math.abs(x[i] - xg) + Math.abs(y[i] - yg));
            if (hun < 0 || hun % 2 != 0) {
                no = true;
                break;
            } else {
                xg = x[i];
                yg = y[i];
                tg = t[i];
            }
        }
        if (no) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}
