public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  String stN = sc . nextLine ( ) ;
  int n = Integer . parseInt ( stN ) ;
  String line = null ;
  List < String > lines = null ;
  int t = 0 ;
  int x = 0 ;
  int y = 0 ;
  int nT = 0 ;
  int nX = 0 ;
  int nY = 0 ;
  int abs = 0 ;
  while ( sc . hasNext ( ) ) {
    line = sc . nextLine ( ) ;
    lines = Arrays . asList ( line . split ( " " ) ) ;
    nT = Integer . parseInt ( lines . get ( 0 ) ) ;
    nX = Integer . parseInt ( lines . get ( 1 ) ) ;
    nY = Integer . parseInt ( lines . get ( 2 ) ) ;
    abs = Math . abs ( nX - x ) + Math . abs ( nY - y ) ;
    if ( abs == ( nT - t ) ) {
    }
    else if ( abs < ( nT - t ) && ( ( nT - t ) - abs ) % 2 == 0 ) {
    }
    else {
      System . out . println ( "No" ) ;
      return ;
    }
    t = nT ;
    x = nX ;
    y = nY ;
  }
  System . out . println ( "Yes" ) ;
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; String stN = sc . nextLine ( ) ; int n = Integer . parseInt ( stN ) ; String line = null ; List < String > lines = null ; int t = 0 ; int x = 0 ; int y = 0 ; int nT = 0 ; int nX = 0 ; int nY = 0 ; int abs = 0 ; while ( sc . hasNext ( ) ) { line = sc . nextLine ( ) ; lines = Arrays . asList ( line . split ( " ▁ " ) ) ; nT = Integer . parseInt ( lines . get ( 0 ) ) ; nX = Integer . parseInt ( lines . get ( 1 ) ) ; nY = Integer . parseInt ( lines . get ( 2 ) ) ; abs = Math . abs ( nX - x ) + Math . abs ( nY - y ) ; if ( abs == ( nT - t ) ) { } else if ( abs < ( nT - t ) && ( ( nT - t ) - abs ) % 2 == 0 ) { } else { System . out . println ( " No " ) ; return ; } t = nT ; x = nX ; y = nY ; } System . out . println ( " Yes " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (null_literal))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (null_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (block) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier))) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) consequence: (block) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))