#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j, k;
  cin >> n;
  if (n <= 9) {
    cout << "1" << endl;
    cout << n;
  } else {
    cout << n << endl;
    for (i = 1; i <= n; i++)
      cout << "1"
           << " ";
  }
}
