#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> vect;
  int cnt = 0;
  cout << n << endl;
  while (n) {
    cout << "1 ";
    n--;
  }
  cout << endl;
}
