#include <bits/stdc++.h>
using namespace std;
int n, sum, highest, many;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= 9; i++) {
    if (n % i == 0 && (n != i || n == 1)) {
      highest = i;
      many = n / highest;
      sum++;
    }
  }
  printf("%d\n", many);
  for (int i = 0; i < many; i++) {
    printf("%d", highest);
    if (i < many - 1)
      printf(" ");
    else
      printf("\n");
  }
  return 0;
}
