#include <bits/stdc++.h>
using namespace std;
ostream &operator<<(ostream &out, vector<int> &v) {
  for (auto a : v) out << a << " ";
  out << endl;
}
int main() {
  int n;
  cin >> n;
  cout << n << endl;
  for (int i = 0; i < n; i++) cout << 1 << " ";
  cout << endl;
}
