public static void main ( String args [ ] ) {
  try {
    Scanner sc = new Scanner ( System . in ) ;
    String str [ ] = new String [ 2 ] ;
    str = sc . next ( ) . split ( ":" ) ;
    double a = Integer . parseInt ( str [ 0 ] ) ;
    double b = Integer . parseInt ( str [ 1 ] ) ;
    double min = b * 6 ;
    double hr = a * 30 + b / 2 ;
    if ( hr >= 360.0 ) {
      hr = hr - 360 ;
    }
    System . out . println ( hr + " " + min ) ;
  }
  catch ( Exception e ) {
    return ;
  }
}

public static void main ( String args [ ] ) { try { Scanner sc = new Scanner ( System . in ) ; String str [ ] = new String [ 2 ] ; str = sc . next ( ) . split ( " : " ) ; double a = Integer . parseInt ( str [ 0 ] ) ; double b = Integer . parseInt ( str [ 1 ] ) ; double min = b * 6 ; double hr = a * 30 + b / 2 ; if ( hr >= 360.0 ) { hr = hr - 360 ; } System . out . println ( hr + " ▁ " + min ) ; } catch ( Exception e ) { return ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (try_statement 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) dimensions: (dimensions) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (decimal_integer_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (floating_point_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: (floating_point_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: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_floating_point_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (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)))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (return_statement))))))