#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 9;
const long long inf = 1e18;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long k;
  cin >> k;
  if (k & 1) {
    cout << 1999 << endl;
    cout << "0 -1 ";
    long long s = (k + 1999) / 2;
    for (long long i = 0; i < 1997; i++) {
      long long m = min(1000000LL, s);
      cout << m << ' ';
      s -= m;
    }
  } else {
    cout << 2000 << endl;
    cout << "0 -1 ";
    long long s = (k + 2000) / 2;
    for (long long i = 0; i < 1998; i++) {
      long long m = min(1000000LL, s);
      cout << m << ' ';
      s -= m;
    }
  }
  return 0;
}
