#include <bits/stdc++.h>
using namespace std;
int main() {
  int dem = 0;
  int n;
  int tong = 0;
  int s;
  cin >> n;
  for (int i = 9; i >= 1; i--) {
    if (n % i == 0) {
      s = i;
      break;
    }
  }
  int z;
  z = n / s;
  cout << z << endl;
  while (z) {
    cout << s << " ";
    z--;
  }
  return 0;
}
