#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
  int i = 8;
  int n;
  vector<int> v;
  cin >> n;
  int c = 0;
  while (n != 0) {
    if (n % a[i] != 0) {
      i--;
    } else {
      if (a[i] <= n) {
        c++;
        n = n - a[i];
        v.push_back(a[i]);
      } else {
        i--;
      }
    }
  }
  cout << c << endl;
  for (int i = 0; i < v.size(); i++) {
    cout << v[i] << " ";
  }
}
