public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  double m = sc . nextDouble ( ) ;
  double M = m / 1000.0 ;
  if ( M < 0.1 ) {
    System . out . println ( "00" ) ;
  }
  else if ( 0.1 <= M && M <= 5 ) {
    int ans = ( int ) ( M * 10 ) ;
    if ( ans <= 9 ) System . out . println ( "0" + ans ) ;
    else System . out . println ( ans ) ;
  }
  else if ( 6 <= M && M <= 30 ) {
    System . out . println ( ( int ) M + 50 ) ;
  }
  else if ( 35 <= M && M <= 70 ) {
    System . out . println ( ( ( int ) M - 30 ) / 5 + 80 ) ;
  }
  else if ( 70 < M ) {
    System . out . println ( 89 ) ;
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; double m = sc . nextDouble ( ) ; double M = m / 1000.0 ; if ( M < 0.1 ) { System . out . println ( "00" ) ; } else if ( 0.1 <= M && M <= 5 ) { int ans = ( int ) ( M * 10 ) ; if ( ans <= 9 ) System . out . println ( "0" + ans ) ; else System . out . println ( ans ) ; } else if ( 6 <= M && M <= 30 ) { System . out . println ( ( int ) M + 50 ) ; } else if ( 35 <= M && M <= 70 ) { System . out . println ( ( ( int ) M - 30 ) / 5 + 80 ) ; } else if ( 70 < M ) { System . out . println ( 89 ) ; } }
(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: (floating_point_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) value: (binary_expression left: (identifier) right: (decimal_floating_point_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_floating_point_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_floating_point_literal) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_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 object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (identifier))))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (integral_type) value: (identifier)) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (integral_type) value: (identifier)) right: (decimal_integer_literal))) right: (decimal_integer_literal)) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal))))))))))))