public static void BoringApartments ( ) {
  Scanner mScanner = new Scanner ( System . in ) ;
  int task = mScanner . nextInt ( ) ;
  if ( task <= 36 && task >= 1 ) {
    for ( int i = 1 ;
    i <= task ;
    i ++ ) {
      int taskNumber = mScanner . nextInt ( ) ;
      if ( taskNumber >= 1 && taskNumber <= 9999 ) {
        if ( taskNumber % 10 == 1 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) ) ;
        }
        else if ( taskNumber % 10 == 2 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 10 ) ;
        }
        else if ( taskNumber % 10 == 3 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 20 ) ;
        }
        else if ( taskNumber % 10 == 4 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 30 ) ;
        }
        else if ( taskNumber % 10 == 5 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 40 ) ;
        }
        else if ( taskNumber % 10 == 6 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 50 ) ;
        }
        else if ( taskNumber % 10 == 7 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 60 ) ;
        }
        else if ( taskNumber % 10 == 8 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 70 ) ;
        }
        else if ( taskNumber % 10 == 9 ) {
          System . out . println ( TotalPressedCharacter ( taskNumber ) + 80 ) ;
        }
      }
    }
  }
}

public static void BoringApartments ( ) { Scanner mScanner = new Scanner ( System . in ) ; int task = mScanner . nextInt ( ) ; if ( task <= 36 && task >= 1 ) { for ( int i = 1 ; i <= task ; i ++ ) { int taskNumber = mScanner . nextInt ( ) ; if ( taskNumber >= 1 && taskNumber <= 9999 ) { if ( taskNumber % 10 == 1 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) ) ; } else if ( taskNumber % 10 == 2 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 10 ) ; } else if ( taskNumber % 10 == 3 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 20 ) ; } else if ( taskNumber % 10 == 4 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 30 ) ; } else if ( taskNumber % 10 == 5 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 40 ) ; } else if ( taskNumber % 10 == 6 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 50 ) ; } else if ( taskNumber % 10 == 7 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 60 ) ; } else if ( taskNumber % 10 == 8 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 70 ) ; } else if ( taskNumber % 10 == 9 ) { System . out . println ( TotalPressedCharacter ( taskNumber ) + 80 ) ; } } } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) 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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier))))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) 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: (method_invocation name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))))))))))))))))))))