public static void main ( String [ ] args ) {
  java . util . Scanner sc = new java . util . Scanner ( System . in ) ;
  int N = sc . nextInt ( ) ;
  double mLT1 [ ] = new double [ N ] ;
  double mST1 [ ] = new double [ N ] ;
  int c1 = 0 ;
  int c2 = 0 ;
  int c3 = 0 ;
  int c4 = 0 ;
  int c5 = 0 ;
  int c6 = 0 ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    mLT1 [ i ] = sc . nextDouble ( ) ;
    mST1 [ i ] = sc . nextDouble ( ) ;
    if ( 35 <= mLT1 [ i ] ) {
      c1 ++ ;
    }
    if ( 30 <= mLT1 [ i ] & mLT1 [ i ] < 35 ) {
      c2 ++ ;
    }
    if ( 25 <= mLT1 [ i ] & mLT1 [ i ] < 30 ) {
      c3 ++ ;
    }
    if ( 25 <= mST1 [ i ] ) {
      c4 ++ ;
    }
    if ( 0 <= mLT1 [ i ] & mST1 [ i ] < 0 ) {
      c5 ++ ;
    }
    if ( mLT1 [ i ] < 0 ) {
      c6 ++ ;
    }
  }
  System . out . println ( c1 + " " + c2 + " " + c3 + " " + c4 + " " + c5 + " " + c6 ) ;
}

public static void main ( String [ ] args ) { java . util . Scanner sc = new java . util . Scanner ( System . in ) ; int N = sc . nextInt ( ) ; double mLT1 [ ] = new double [ N ] ; double mST1 [ ] = new double [ N ] ; int c1 = 0 ; int c2 = 0 ; int c3 = 0 ; int c4 = 0 ; int c5 = 0 ; int c6 = 0 ; for ( int i = 0 ; i < N ; i ++ ) { mLT1 [ i ] = sc . nextDouble ( ) ; mST1 [ i ] = sc . nextDouble ( ) ; if ( 35 <= mLT1 [ i ] ) { c1 ++ ; } if ( 30 <= mLT1 [ i ] & mLT1 [ i ] < 35 ) { c2 ++ ; } if ( 25 <= mLT1 [ i ] & mLT1 [ i ] < 30 ) { c3 ++ ; } if ( 25 <= mST1 [ i ] ) { c4 ++ ; } if ( 0 <= mLT1 [ i ] & mST1 [ i ] < 0 ) { c5 ++ ; } if ( mLT1 [ i ] < 0 ) { c6 ++ ; } } System . out . println ( c1 + " ▁ " + c2 + " ▁ " + c3 + " ▁ " + c4 + " ▁ " + c5 + " ▁ " + c6 ) ; }
(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: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier))))) (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))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (array_access array: (identifier) index: (identifier))) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (array_access array: (identifier) index: (identifier))) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (array_access array: (identifier) index: (identifier))) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier)))))))