#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int k;
  cin >> k;
  int n, p;
  for (n = 2000;; n--) {
    int t = k + n;
    for (p = 2; p <= n - 1001; p++) {
      if (t % p == 0) goto out;
    }
  }
out:;
  cout << n << '\n';
  for (int i = 0; i < p - 1; i++) {
    cout << "0 ";
  }
  cout << "-1 ";
  int t = n - p, rm = (k + n) / p;
  for (int i = 0; i < t; i++) {
    cout << rm / (t - i) << ' ';
    rm -= rm / (t - i);
  }
}
