#include <bits/stdc++.h>
using namespace std;
long long int fpow(long long int n, long long int k,
                   long long int p = 1000000007) {
  long long int r = 1;
  n = n % p;
  while (k > 0) {
    if (k & 1) {
      r = (r * n) % p;
    }
    k = k >> 1;
    n = (n * n) % p;
  }
  return r;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  if (n <= 9) {
    cout << 1 << "\n";
    cout << n;
  } else {
    long long int ans = -1;
    for (long long int i = 1; i <= 9; i++) {
      if (n % i == 0) ans = i;
    }
    cout << n / ans << "\n";
    for (long long int i = 1; i <= n / ans; i++) cout << ans << " ";
  }
  return 0;
}
