import java.util.*;

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

    int N = sc.nextInt();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      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();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }
  } main {
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      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 boolean f = true; f true for (int i=0; i < N; i++) {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = 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 (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    } {
      int t = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = 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 (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      } x+y <= t x+y x y t {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } if (t%2 != (x+y)%2) {
          f = false;
        } t%2 != (x+y)%2 t%2 t 2 (x+y)%2 (x+y) x y 2 {
          f = false;
        } f = false f false {
        f = false;
      } f = false f false if (f == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    } f == false f false {
      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();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      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();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }
  }
} Main
import java.util.*;

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

    int N = sc.nextInt();
    boolean f = true;

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

      if (x+y <= t) {
        if (t%2 != (x+y)%2) {
          f = false;
        }
      } else {
        f = false;
      }
    }

    if (f == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }
  }
}
