#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n <= 9) {
    cout << 1 << endl << n;
  } else {
    vector<int> ans;
    cout << n << endl;
    for (int i = 0; i < n; i++) cout << 1 << " ";
  }
  return 0;
}
