#include <bits/stdc++.h>
using namespace std;

int main(){
  
  int n;
  cin>>n;

  if( n == 3 ){
    cout<<"2 5 63"<<endl;
    return 0;
  }
  
  int sum = 0;
  
  for(int i=2;i<=n;i+=2){
    
    sum += i;
    
    if( sum % 3 == 0 ){
      
      int cnt1 = i / 2;
      
      int cnt2 = ( n - cnt1 ) / 2 * 2;
      
      int flag = cnt1 + cnt2 != n;
      
      if( cnt1 >= 1 && cnt2 >= 1 && cnt1 + cnt2 + flag == n ){
	
	if( cnt2 * 2 - 1 > 30000 ) continue;
	
	vector<int> ans;
	
	for(int j=1;j<=cnt1;j++){
	  ans.push_back( j * 2 );
	}
	
	int x = 3, cnt = 0;
	
	while(1){
	  
	  if( x % 6 != 0 ){
	    ans.push_back( x );
	    cnt++;
	  }
	  
	  x += 3;
	  
	  if( cnt == cnt2 ) break;
	}

	if( flag ) ans.push_back( 30000 );
	
	for(int j=0;j<n;j++){
	  if(j) cout<<' ';
	  cout<<ans[j];
	}

	cout<<endl;
	
	return 0;
      }
      
    }
    
  }
  
  
  return 0;
}
