import java.io.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in int[] table = new int[3]; table new int[3] 3 String[] lines; lines final int t = 0; t 0 final int x = 1; x 1 final int y = 2; y 2 boolean isPossible = true; isPossible true for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      } {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      } lines = in.readLine().split(" ") lines in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]); int j=0; int j=0; j 0 j<3 j 3 j++ j++ j table[j] = Integer.parseInt(lines[j]); table[j] = Integer.parseInt(lines[j]) table[j] table j Integer.parseInt(lines[j]) Integer.parseInt Integer lines[j] lines j int d = table[x] + table[y]; d table[x] + table[y] table[x] table x table[y] table y int time = table[t]; time table[t] table t if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          } time < d || (time - d) % 2 != 0 time < d time d (time - d) % 2 != 0 (time - d) % 2 (time - d) time d 2 0 {
            isPossible = false;
            break;
          } isPossible = false isPossible false break; String ans = isPossible ? "Yes" : "No"; ans isPossible ? "Yes" : "No" isPossible "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main
import java.io.*;

public class Main {
  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {
    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      int[] table = new int[3];

      String[] lines;
      final int t = 0;
      final int x = 1;
      final int y = 2;
      boolean isPossible = true;

      for(int i=0; i<n; i++) {
        lines = in.readLine().split(" ");
        for(int j=0; j<3; j++)
          table[j] = Integer.parseInt(lines[j]);

          int d = table[x] + table[y];
          int time = table[t];
          if(time < d || (time - d) % 2 != 0) {
            isPossible = false;
            break;
          }
      }

      String ans = isPossible ? "Yes" : "No";
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
}