#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int temp = 0, temp2 = 0;
  for (int i = 1; i <= n; ++i) {
    if (n % i == 0 && i != 1) {
      temp = i;
      temp2 = n / i;
      if (temp < 10 || temp2 < 10) break;
    } else if (n == 1) {
      temp2 = 1;
      temp = 1;
    }
  }
  int p, q;
  p = max(temp2, temp);
  q = min(temp2, temp);
  if (p < 10 && q < 10) {
    cout << q << endl;
    for (int i = 0; i < min(temp, temp2); ++i) cout << p << " ";
  } else {
    cout << max(temp, temp2) << endl;
    for (int i = 0; i < max(temp, temp2); ++i) cout << min(temp, temp2) << " ";
  }
  return 0;
}
