#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-9;
const long double pi = acos(-1.0);
const int MX = 100000 + 5;
const int mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
int n;
int main() {
  scanf("%d", &n);
  printf("%d\n", n);
  for (int i = 1; i <= n; i++) printf("1%c", " \n"[i == n]);
  return 0;
}
