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