#include <bits/stdc++.h>
using namespace std;
long long mul(long long a, long long b) { return (a * b) % 1000000007; }
long long add(long long a, long long b) {
  a += b;
  if (a >= 1000000007) a -= 1000000007;
  return a;
}
long long binary_expo(long long base, long long expo) {
  long long res = 1;
  while (expo) {
    if (expo % 2) {
      res = mul(res, base);
    }
    expo /= 2;
    base = mul(base, base);
  }
  return res;
}
void solve() {
  long long n;
  cin >> n;
  cout << n << '\n';
  for (long long i = 1; i <= n; i++) {
    cout << "1 ";
  }
  cout << '\n';
}
signed main() {
  long long t;
  ios_base::sync_with_stdio(false);
  t = 1;
  while (t--) {
    solve();
  }
}
