#include <bits/stdc++.h>
int main() {
  int n;
  int max = 0;
  scanf("%d", &n);
  int d[10];
  for (int i = 1; i < 10; i++) {
    d[i] = i;
  }
  for (int i = 1; i < 10; i++) {
    if (n % d[i] == 0) {
      max = d[i];
    }
  }
  int time = n / max;
  printf("%d\n", time);
  for (int i = 0; i < time - 1; i++) printf("%d ", max);
  printf("%d\n", max);
}
