#include<iostream> #include<vector> #include<algorithm> using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll n; cin>>n; vector<ll> ans(n,1); ans[0] = 3; ll now = 0; for(int i = 0;i<n;i++) now += ans[i]; now %= 3; if(now==2) ans[1] = 3; else if(now==0) ans[1] = 2; for(int i = 0;i<n;i++){ if(i) cout<<" "; cout<<ans[i]; } cout<<endl; }