import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    }

    static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    }
} 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();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    }

    static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean isAns = true; isAns true for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        } 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();
            
            if (!isCheck(t, x, y))
                isAns = false;
        } {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        } 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 if (!isCheck(t, x, y))
                isAns = false; !isCheck(t, x, y) isCheck(t, x, y) isCheck t x y isAns = false isAns false System.out.println(isAns ? "Yes" : "No") System.out.println System.out System System.out isAns ? "Yes" : "No" isAns "Yes" "No" String[] args args static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    } isCheck {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    } int sumMove = Math.abs(x) + Math.abs(y); sumMove Math.abs(x) + Math.abs(y) Math.abs(x) Math.abs Math x Math.abs(y) Math.abs Math y if (sumMove > t)
            return false; sumMove > t sumMove t return false; false if (sumMove % 2 == t % 2)
            return true;
        else
            return false; sumMove % 2 == t % 2 sumMove % 2 sumMove 2 t % 2 t 2 return true; true return false; false int t t int x x int y y public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    }

    static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    }

    static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        boolean isAns = true;
        
        for (int i = 0; i < n; i++) {
            int t = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            
            if (!isCheck(t, x, y))
                isAns = false;
        }
        
        System.out.println(isAns ? "Yes" : "No");
    }

    static boolean isCheck(int t, int x, int y) {
        int sumMove = Math.abs(x) + Math.abs(y);
        if (sumMove > t)
            return false;
        
        if (sumMove % 2 == t % 2)
            return true;
        else
            return false;
    }
}
