#include <bits/stdc++.h>
using namespace std;
const int MN = 1e5 + 10, inf = 1e9 + 100, mod = 1e9 + 7;
long long n;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  cout << n << endl;
  for (long long i = 0; i < n; i++) cout << 1 << " ";
}
