public static void solve ( ) throws Exception {
  String inp [ ] = f . next ( ) . split ( ":" ) ;
  int h = Integer . parseInt ( inp [ 0 ] ) ;
  int m = Integer . parseInt ( inp [ 1 ] ) ;
  int a = f . ni ( ) ;
  for ( int i = 0 ;
  i < a ;
  ++ i ) {
    ++ m ;
    if ( m == 60 ) {
      m = 0 ;
      ++ h ;
      if ( h == 24 ) h = 0 ;
    }
  }
  if ( h < 10 ) p ( "0" + h + ":" ) ;
  else p ( h + ":" ) ;
  if ( m < 10 ) p ( "0" + m ) ;
  else p ( m ) ;
}

public static void solve ( ) throws Exception { String inp [ ] = f . next ( ) . split ( " : " ) ; int h = Integer . parseInt ( inp [ 0 ] ) ; int m = Integer . parseInt ( inp [ 1 ] ) ; int a = f . ni ( ) ; for ( int i = 0 ; i < a ; ++ i ) { ++ m ; if ( m == 60 ) { m = 0 ; ++ h ; if ( h == 24 ) h = 0 ; } } if ( h < 10 ) p ( "0" + h + " : " ) ; else p ( h + " : " ) ; if ( m < 10 ) p ( "0" + m ) ; else p ( m ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (decimal_integer_literal)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (update_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (update_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) alternative: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (identifier))))) alternative: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))))))