#include <bits/stdc++.h>
using namespace std;
const int N = (int)2e3 + 7;
int a[N];
int main() {
  int x;
  cin >> x;
  a[1] = -1;
  long long sum = -1;
  int n;
  for (int i = 2; i <= 2000 && sum - i + 1 <= x; i++) {
    n = i;
    a[i] = 1e6;
    sum += a[i];
  }
  while (sum - n + 1 > x) {
    a[n]--;
    sum--;
  }
  cout << n << endl;
  for (int i = 1; i <= n; i++) {
    printf("%d ", a[i]);
  }
}
