#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7;
const long long INFLL = 1e18 + 7;
const long double EPS = 1e-9;
const int MAXN = 1e5 + 17;
mt19937 myRand(1337);
mt19937_64 myRand64(1337);
signed main(void) {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int k;
  cin >> k;
  int len = k / (int)1e6 + (k % (int)1e6 != 0) + 2;
  int r = k + len;
  vector<int> ans = {-1};
  int m = r / (int)1e6;
  r = r - (r / (int)1e6) * 1e6;
  ans.push_back(r);
  for (int i = 0; i < m; ++i) {
    ans.push_back((int)1e6);
  }
  for (int i = 0; i < len - (int)ans.size(); ++i) ans.push_back(0);
  cout << (int)ans.size() << endl;
  for (int i : ans) cout << i << ' ';
}
