#include <bits/stdc++.h>
using namespace std;
long long k, n = 1, a[2001];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> k;
  long long sum = 0, x;
  a[1] = -1;
  while (k + n > sum) {
    x = k + n + 1 - sum;
    x = min(x, (long long)1e6);
    a[++n] = x;
    sum += x;
    if (n > 2000) break;
  }
  if (n > 2000) {
    cout << -1 << endl;
    return 0;
  }
  cout << n << endl;
  for (long long i = (1); i < (n + 1); ++i) cout << a[i] << ' ';
  cout << endl;
  return 0;
}
