public static void main ( String args [ ] ) {
  Scanner sc = new Scanner ( System . in ) ;
  String m = sc . next ( ) ;
  int n = sc . nextInt ( ) ;
  String input [ ] = m . split ( ":" ) ;
  int hour = Integer . parseInt ( input [ 0 ] ) ;
  int min = Integer . parseInt ( input [ 1 ] ) ;
  hour += n / 60 ;
  min += n % 60 ;
  if ( min >= 60 ) {
    hour ++ ;
    min %= 60 ;
  }
  hour %= 24 ;
  String hour1 = String . valueOf ( hour ) ;
  String min1 = String . valueOf ( min ) ;
  if ( hour < 10 ) hour1 = "0" + hour1 ;
  if ( min < 10 ) min1 = "0" + min1 ;
  System . out . println ( hour1 + ":" + min1 ) ;
}

public static void main ( String args [ ] ) { Scanner sc = new Scanner ( System . in ) ; String m = sc . next ( ) ; int n = sc . nextInt ( ) ; String input [ ] = m . split ( " : " ) ; int hour = Integer . parseInt ( input [ 0 ] ) ; int min = Integer . parseInt ( input [ 1 ] ) ; hour += n / 60 ; min += n % 60 ; if ( min >= 60 ) { hour ++ ; min %= 60 ; } hour %= 24 ; String hour1 = String . valueOf ( hour ) ; String min1 = String . valueOf ( min ) ; if ( hour < 10 ) hour1 = "0" + hour1 ; if ( min < 10 ) min1 = "0" + min1 ; System . out . println ( hour1 + " : " + min1 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) 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)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (identifier) 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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (local_variable_declaration type: (type_identifier) 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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (string_literal) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (string_literal) right: (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)))))))