public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int N = sc . nextInt ( ) ;
  Set < Integer > ans = new HashSet < > ( ) ;
  int lastAns ;
  if ( N == 3 ) {
    System . out . println ( "2 3 25" ) ;
  }
  else if ( N == 4 ) {
    System . out . println ( "2 3 5 20" ) ;
  }
  else if ( N == 5 ) {
    System . out . println ( "2 3 4 5 16" ) ;
  }
  else {
    ans . add ( 2 ) ;
    ans . add ( 3 ) ;
    int sum = 5 ;
    for ( int i = 4 ;
    ;
    i ++ ) {
      if ( i % 2 == 0 || i % 3 == 0 ) {
        ans . add ( i ) ;
        sum += i ;
        lastAns = i ;
        if ( ans . size ( ) == N ) {
          break ;
        }
      }
    }
    if ( sum % 6 == 0 ) {
    }
    else if ( sum % 6 == 2 ) {
      ans . remove ( 8 ) ;
      for ( int i = lastAns + 1 ;
      ;
      i ++ ) {
        if ( i % 6 == 0 ) {
          ans . add ( i ) ;
          break ;
        }
      }
    }
    else if ( sum % 6 == 3 ) {
      ans . remove ( 9 ) ;
      for ( int i = lastAns + 1 ;
      ;
      i ++ ) {
        if ( i % 6 == 0 ) {
          ans . add ( i ) ;
          break ;
        }
      }
    }
    else {
      ans . remove ( 9 ) ;
      for ( int i = lastAns + 1 ;
      ;
      i ++ ) {
        if ( i % 6 == 4 ) {
          ans . add ( i ) ;
          break ;
        }
      }
    }
    for ( Integer an : ans ) {
      System . out . print ( an + " " ) ;
    }
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int N = sc . nextInt ( ) ; Set < Integer > ans = new HashSet < > ( ) ; int lastAns ; if ( N == 3 ) { System . out . println ( "2 ▁ 3 ▁ 25" ) ; } else if ( N == 4 ) { System . out . println ( "2 ▁ 3 ▁ 5 ▁ 20" ) ; } else if ( N == 5 ) { System . out . println ( "2 ▁ 3 ▁ 4 ▁ 5 ▁ 16" ) ; } else { ans . add ( 2 ) ; ans . add ( 3 ) ; int sum = 5 ; for ( int i = 4 ; ; i ++ ) { if ( i % 2 == 0 || i % 3 == 0 ) { ans . add ( i ) ; sum += i ; lastAns = i ; if ( ans . size ( ) == N ) { break ; } } } if ( sum % 6 == 0 ) { } else if ( sum % 6 == 2 ) { ans . remove ( 8 ) ; for ( int i = lastAns + 1 ; ; i ++ ) { if ( i % 6 == 0 ) { ans . add ( i ) ; break ; } } } else if ( sum % 6 == 3 ) { ans . remove ( 9 ) ; for ( int i = lastAns + 1 ; ; i ++ ) { if ( i % 6 == 0 ) { ans . add ( i ) ; break ; } } } else { ans . remove ( 9 ) ; for ( int i = lastAns + 1 ; ; i ++ ) { if ( i % 6 == 4 ) { ans . add ( i ) ; break ; } } } for ( Integer an : ans ) { System . out . print ( an + " ▁ " ) ; } } }
(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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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: (integral_type) declarator: (variable_declarator name: (identifier))) (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 (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (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))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (identifier))) consequence: (block (break_statement))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block) 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: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) update: (update_expression (identifier)) body: (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: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (break_statement)))))) 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: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) update: (update_expression (identifier)) body: (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: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (break_statement)))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) update: (update_expression (identifier)) body: (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: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (break_statement))))))))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))))))))))