#include <bits/stdc++.h>
using namespace std;
const long long supr = 1000000021;
const long double infm = 1e-9;
const long double pipi = acos(-1.0);
int n, t;
string s;
char h;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n;
  cout << n << endl;
  for (t = 1; t <= n; t++) cout << 1 << " ";
  return 0;
}
