#include <bits/stdc++.h>
#pragma GCC optimize "03"
using namespace std;
const char E = '\n';
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(0);
  long long n;
  cin >> n;
  cout << n << E;
  for (int i = 1; i <= n; i++) cout << 1 << " ";
  return 0;
}
