#include <bits/stdc++.h>
using namespace std;
long long next() {
  long long x;
  cin >> x;
  return x;
}
const long long inf = 1e18, eps = 1e9 + 7, nmax = 2 * 1e5;
int main() {
  long long n = next();
  cout << n << '\n';
  while (n--) cout << "1 ";
  return 0;
}
