#include <bits/stdc++.h>
using namespace std;
inline int read() {
  char ch = getchar();
  int ret = 0, f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  for (; ch >= '0' && ch <= '9'; ch = getchar()) ret = ret * 10 + ch - '0';
  return ret * f;
}
inline void print(string name, int *arr, int len) {
  for (int i = 1; i <= len; ++i) printf("%s[%d]=%d\n", name.c_str(), i, arr[i]);
  puts("");
}
inline void print(string name, int a) {
  printf("%s=%d\n", name.c_str(), a);
  puts("");
}
const int INF = 1 << 30;
int main() {
  int n;
  cin >> n;
  cout << n << endl;
  for (int i = 1; i <= n; ++i) printf("1 ");
  return 0;
}
