public static void main ( String [ ] args ) throws Exception {
  try ( Scanner sc = new Scanner ( System . in ) ) {
    while ( sc . hasNextInt ( ) ) {
      int a = Integer . parseInt ( sc . nextLine ( ) ) ;
      int VV = 0 ;
      if ( a >= 100 && a <= 5000 ) {
        VV = a * 10 ;
      }
      else if ( a >= 6000 && a <= 30000 ) {
        VV = a + 50000 ;
      }
      else if ( a >= 35000 && a <= 70000 ) {
        VV = ( a - 30000 ) / 5 + 80000 ;
      }
      else if ( a > 70000 ) {
        VV = 89000 ;
      }
      System . out . println ( String . format ( "%02d" , VV / 1000 ) ) ;
    }
  }
}

public static void main ( String [ ] args ) throws Exception { try ( Scanner sc = new Scanner ( System . in ) ) { while ( sc . hasNextInt ( ) ) { int a = Integer . parseInt ( sc . nextLine ( ) ) ; int VV = 0 ; if ( a >= 100 && a <= 5000 ) { VV = a * 10 ; } else if ( a >= 6000 && a <= 30000 ) { VV = a + 50000 ; } else if ( a >= 35000 && a <= 70000 ) { VV = ( a - 30000 ) / 5 + 80000 ; } else if ( a > 70000 ) { VV = 89000 ; } System . out . println ( String . format ( " % 02d " , VV / 1000 ) ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (try_with_resources_statement resources: (resource_specification (resource type: (type_identifier) name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) body: (block (while_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)) right: (decimal_integer_literal))))) alternative: (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 (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (binary_expression left: (identifier) right: (decimal_integer_literal)))))))))))))