#include <bits/stdc++.h>
using namespace std;
const int X = 1000 * 1000;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(nullptr);
  long long k;
  cin >> k;
  long long sm = -1;
  long long sz = 1;
  vector<long long> ans;
  ans.push_back(-1);
  while (sm + 1 != k + sz) {
    if (k + sz - sm <= X)
      ans.push_back(k + sz - sm);
    else
      ans.push_back(X);
    sm += ans.back();
    ++sz;
  }
  cout << ans.size() << endl;
  for (int x : ans) {
    cout << x << ' ';
  }
  return 0;
}
