#include <bits/stdc++.h>
using namespace std;
int main() {
  (ios_base::sync_with_stdio(false), cin.tie(NULL));
  ;
  int n;
  cin >> n;
  cout << n << endl;
  for (int i = 0; i < n; i++) {
    cout << 1 << " ";
  }
  cout << endl;
  return 0;
}
