#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  while (~scanf("%d", &n)) {
    printf("%d\n", n);
    for (int i = 1; i <= n; i++) {
      printf("1%c", i == n ? '\n' : ' ');
    }
  }
}
