#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, c = 1;
  cin >> n;
  for (int i = 9; i >= 1; i--) {
    if (n % i == 0) {
      k = i;
      break;
    }
  }
  cout << n / k << "\n";
  for (int i = 0; i < (n / k); i++) cout << k << " ";
  return 0;
}
