public static void main ( String [ ] args ) {
  Scanner scan = new Scanner ( System . in ) ;
  String [ ] num = {
    "zero" , "one" , "two" , "three" , "four" , "five" , "six" , "seven" , "eight" , "nine" , "ten" , "eleven" , "twelve" , "thirteen" , "fourteen" , "fifteen" , "sixteen" , "seventeen" , "eighteen" , "nineteen" };
    String [ ] num1 = {
      "twenty" , "thirty" , "forty" , "fifty" , "sixty" , "seventy" , "eighty" , "ninety" };
      int n = scan . nextInt ( ) ;
      if ( n < 20 ) {
        System . out . println ( num [ n ] ) ;
      }
      else {
        int f = n / 10 ;
        int l = n % 10 ;
        if ( l != 0 ) {
          System . out . println ( num1 [ f - 2 ] + "-" + num [ l ] ) ;
        }
        else {
          System . out . println ( num1 [ f - 2 ] ) ;
        }
      }
    }
    
public static void main ( String [ ] args ) { Scanner scan = new Scanner ( System . in ) ; String [ ] num = { " zero " , " one " , " two " , " three " , " four " , " five " , " six " , " seven " , " eight " , " nine " , " ten " , " eleven " , " twelve " , " thirteen " , " fourteen " , " fifteen " , " sixteen " , " seventeen " , " eighteen " , " nineteen " } ; String [ ] num1 = { " twenty " , " thirty " , " forty " , " fifty " , " sixty " , " seventy " , " eighty " , " ninety " } ; int n = scan . nextInt ( ) ; if ( n < 20 ) { System . out . println ( num [ n ] ) ; } else { int f = n / 10 ; int l = n % 10 ; if ( l != 0 ) { System . out . println ( num1 [ f - 2 ] + " - " + num [ l ] ) ; } else { System . out . println ( num1 [ f - 2 ] ) ; } } }
(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: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_initializer (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal)))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_initializer (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal) (string_literal)))) (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: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))) alternative: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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 (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (string_literal)) right: (array_access array: (identifier) index: (identifier))))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))))))))))