import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  }

} 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[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  } main {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] x = new int[N]; x new int[N] N int[] y = new int[N]; y new int[N] N int[] t = new int[N]; t 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 sc.close() sc.close sc String result = "Yes"; result "Yes" for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    } {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    } if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      } t[i] < x[i] + y[i] t[i] t i x[i] + y[i] x[i] x i y[i] y i {
        result = "No";
        break;
      } result = "No" result "No" break; {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      } if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0 t[i] % 2 == 1 t[i] % 2 t[i] t i 2 1 (x[i] + y[i]) % 2 == 0 (x[i] + y[i]) % 2 (x[i] + y[i]) x[i] x i y[i] y i 2 0 {
          result = "No";
          break;
        } result = "No" result "No" break; if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0 t[i] % 2 == 1 t[i] % 2 t[i] t i 2 1 (x[i] + y[i]) % 2 == 0 (x[i] + y[i]) % 2 (x[i] + y[i]) x[i] x i y[i] y i 2 0 {
          result = "No";
          break;
        } result = "No" result "No" break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  }

} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int[] x = new int[N];
    int[] y = new int[N];
    int[] t = new int[N];

    for (int i = 0; i < N; i++) {
      t[i] = sc.nextInt();
      x[i] = sc.nextInt();
      y[i] = sc.nextInt();
    }

    sc.close();

    String result = "Yes";

    for (int i = 0; i < N; i++) {
      if (t[i] < x[i] + y[i]) {
        result = "No";
        break;
      } else {
        if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        } else if (t[i] % 2 == 1 && (x[i] + y[i]) % 2 == 0) {
          result = "No";
          break;
        }
      }
    }

    System.out.println(result);

  }

}