#include using namespace std; typedef long long ll; int main() { int n; cin >> n; if (n%3==0) { cout << 3 << ' ' << 3; for (int i = 2; i < n; i++) cout << ' ' << 1; cout << endl; } else if (n%3 == 1) { cout << 3 << ' ' << 2; for (int i = 2; i < n; i++) cout << ' ' << 1; cout << endl; } else { cout << 3; for (int i = 1; i < n; i++) cout << ' ' << 1; cout << endl; } return 0; }