import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } main {
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    } BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in)); stdR new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(stdR.readLine()) + 1; N Integer.parseInt(stdR.readLine()) + 1 Integer.parseInt(stdR.readLine()) Integer.parseInt Integer stdR.readLine() stdR.readLine stdR 1 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 t[0] = 0 t[0] t 0 0 x[0] = 0 x[0] x 0 0 y[0] = 0 y[0] y 0 0 for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        } int i = 1 ; int i = 1 ; i 1 i < N i N i++ i++ i {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        } {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        } String[] str = stdR.readLine().split(" "); str stdR.readLine().split(" ") stdR.readLine().split stdR.readLine() stdR.readLine stdR " " t[i] = Integer.parseInt(str[0]) t[i] t i Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 x[i] = Integer.parseInt(str[1]) x[i] x i Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 y[i] = Integer.parseInt(str[2]) y[i] y i Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 boolean isok = true; isok true for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        } int i = 0 ; int i = 0 ; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        } {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        } int time = t[i + 1] - t[i]; time t[i + 1] - t[i] t[i + 1] t i + 1 i 1 t[i] t i int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]); distance Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]) Math.abs(x[i + 1] - x[i]) Math.abs Math x[i + 1] - x[i] x[i + 1] x i + 1 i 1 x[i] x i Math.abs(y[i + 1] - y[i]) Math.abs Math y[i + 1] - y[i] y[i + 1] y i + 1 i 1 y[i] y i if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            } !(time >= distance && time % 2 == distance % 2) (time >= distance && time % 2 == distance % 2) time >= distance time distance time % 2 == distance % 2 time % 2 time 2 distance % 2 distance 2 {
                isok = false;
                break;
            } isok = false isok false break; if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        } isok {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws Exception{
        BufferedReader stdR = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(stdR.readLine()) + 1;
        int[] t = new int[N];
        int[] x = new int[N];
        int[] y = new int[N];
        t[0] = 0;
        x[0] = 0;
        y[0] = 0;
        for(int i = 1 ; i < N ; i++) {
            String[] str = stdR.readLine().split(" ");
            t[i] = Integer.parseInt(str[0]);
            x[i] = Integer.parseInt(str[1]);
            y[i] = Integer.parseInt(str[2]);
        }
        boolean isok = true;
        for(int i = 0 ; i < N - 1 ; i++) {
            int time = t[i + 1] - t[i];
            int distance = Math.abs(x[i + 1] - x[i]) + Math.abs(y[i + 1] - y[i]);
            if(!(time >= distance && time % 2 == distance % 2)) {
                isok = false;
                break;
            }
        }
        if(isok) {
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }
    }
}
