#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  string s;
  s += to_string(n);
  s += '\n';
  for (int i = 0; i < n; i++) s += "1 ";
  cout << s << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  solve();
}
