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