#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long INFLL = 1e18;
const int MOD = 1e9 + 7;
const int MAXN = 2e5 + 5;
int n;
int main() {
  scanf("%d", &n);
  printf("%d\n", n);
  for (int i = 0; i < n - 1; i++) printf("1 ");
  printf("1\n");
  return 0;
}
