#include <bits/stdc++.h>
using namespace std;
long long m, n, a, b, c, d, ans, ans2, cnt;
string s, s1, s2, s3, s4, s5;
float f, f1, f2, f3, f4;
char ch, ch1, ch2, ch3, ch4;
long long arr[1000001];
vector<pair<string, int> > p;
vector<pair<int, string> > p1;
deque<long long int> dq, dq1, dq2;
int main() {
  cin >> n;
  cout << n << endl;
  for (int i = 0; i < n; i++) {
    cout << 1 << " ";
  }
}
