#include <bits/stdc++.h>
using namespace std;
int ans[2020], cnt = 0, k;
int main() {
  cin >> k;
  k++;
  ans[++cnt] = -1;
  while (k >= 1e6 - 1) {
    k -= 1e6 - 1;
    ans[++cnt] = 1e6 - 1 + 1;
  }
  ans[++cnt] = k + 1;
  cout << cnt << endl;
  for (int i = 1; i <= cnt; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
