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