#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, d, r, q, count = 0;
  cin >> n;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    v.push_back(1);
  }
  cout << v.size() << endl;
  for (auto i : v) {
    cout << i << " ";
  }
}
