#include <bits/stdc++.h>
using namespace std;
bool comparator(pair<int, int> a, pair<int, int> b) {
  if (a.first == b.first) {
    return a.second >= b.second;
  } else
    return a.first <= b.first;
}
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> s;
  for (auto i = 1; i <= 9; ++i) {
    s.push_back(make_pair(n % i, i));
  }
  sort(s.begin(), s.end(), comparator);
  pair<int, int> p = s[0];
  cout << (n / p.second) << endl;
  for (auto i = 0; i < n / p.second; ++i) {
    cout << p.second << " ";
  }
  return 0;
}
