#include <bits/stdc++.h>
using namespace std;
inline void intialize() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout.tie(0);
}
void clearArr(int arr[], int n);
bool arr[105][105];
bool farr[105];
queue<int> q;
queue<int> done;
int main() {
  intialize();
  int n, temp, i, j, ans, ansi, ansm = 999999;
  cin >> n;
  cout << n << endl;
  for (int i = 0; i < n; ++i) cout << 1 << " ";
  cout << endl;
}
void clearArr(int arr[], int n) {
  for (int i = 0; i < n; ++i) arr[i] = 0;
}
