public static void main ( String [ ] args ) {
  final Scanner cin = new Scanner ( System . in ) ;
  final int n = cin . nextInt ( ) ;
  if ( n == 3 ) {
    System . out . println ( "2 5 63" ) ;
  }
  else if ( n == 4 ) {
    System . out . println ( "2 5 20 63" ) ;
  }
  else if ( n == 5 ) {
    System . out . println ( "2 5 20 63 30" ) ;
  }
  else {
    HashSet < Integer > nums = new HashSet < > ( ) ;
    int [ ] offset = new int [ ] {
      2 , 3 , 4 , 6 };
      int k = 0 ;
      int summary = 0 ;
      for ( int i = 0 ;
      i < n ;
      i ++ ) {
        k = i / 4 ;
        int ai = k * 6 + offset [ i % 4 ] ;
        nums . add ( ai ) ;
        summary += ai ;
      }
      int next6k = ( k + 1 ) * 6 ;
      if ( nums . contains ( next6k ) ) next6k += 6 ;
      int fraction = summary % 6 ;
      int [ ] candidateToRemove = new int [ ] {
        0 , 0 , 8 , 9 , 0 , 9 };
        int [ ] candidateToAppend = new int [ ] {
          0 , 0 , ( k + 1 ) * 6 , ( k + 1 ) * 6 , 0 , k * 6 + 4 };
          if ( fraction != 0 ) {
            nums . remove ( candidateToRemove [ fraction ] ) ;
            int append = candidateToAppend [ fraction ] ;
            if ( nums . contains ( append ) ) append += 6 ;
            nums . add ( append ) ;
          }
          System . out . println ( nums . stream ( ) . map ( ( Integer i ) -> i . toString ( ) ) . collect ( Collectors . joining ( " " ) ) ) ;
        }
      }
      
public static void main ( String [ ] args ) { final Scanner cin = new Scanner ( System . in ) ; final int n = cin . nextInt ( ) ; if ( n == 3 ) { System . out . println ( "2 ▁ 5 ▁ 63" ) ; } else if ( n == 4 ) { System . out . println ( "2 ▁ 5 ▁ 20 ▁ 63" ) ; } else if ( n == 5 ) { System . out . println ( "2 ▁ 5 ▁ 20 ▁ 63 ▁ 30" ) ; } else { HashSet < Integer > nums = new HashSet < > ( ) ; int [ ] offset = new int [ ] { 2 , 3 , 4 , 6 } ; int k = 0 ; int summary = 0 ; for ( int i = 0 ; i < n ; i ++ ) { k = i / 4 ; int ai = k * 6 + offset [ i % 4 ] ; nums . add ( ai ) ; summary += ai ; } int next6k = ( k + 1 ) * 6 ; if ( nums . contains ( next6k ) ) next6k += 6 ; int fraction = summary % 6 ; int [ ] candidateToRemove = new int [ ] { 0 , 0 , 8 , 9 , 0 , 9 } ; int [ ] candidateToAppend = new int [ ] { 0 , 0 , ( k + 1 ) * 6 , ( k + 1 ) * 6 , 0 , k * 6 + 4 } ; if ( fraction != 0 ) { nums . remove ( candidateToRemove [ fraction ] ) ; int append = candidateToAppend [ fraction ] ; if ( nums . contains ( append ) ) append += 6 ; nums . add ( append ) ; } System . out . println ( nums . stream ( ) . map ( ( Integer i ) -> i . toString ( ) ) . collect ( Collectors . joining ( " ▁ " ) ) ) ; } }
(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 (modifiers) 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 (modifiers) 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 (string_literal))))) alternative: (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 (string_literal))))) alternative: (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 (string_literal))))) alternative: (block (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions) value: (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (assignment_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)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions) value: (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions) value: (array_initializer (decimal_integer_literal) (decimal_integer_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)) (decimal_integer_literal) (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (identifier)))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (lambda_expression parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))))))))))