#include <bits/stdc++.h>
using namespace std;
int i, j;
long long m, n, x, y, A, B, k, now, ans[2005];
int main() {
  scanf("%lld", &k);
  x = 500;
  y = x * 2 - (k % x);
  B = (k + y) / x + 1;
  for (i = 1; i <= x - 1; i++) {
    ans[i] = 0;
  }
  ans[x] = -1;
  now = 0;
  for (i = x + 1; i <= x + y; i++) {
    if (now + 1000000 <= B) {
      ans[i] = 1000000;
    } else {
      ans[i] = B - now;
    }
    now += ans[i];
  }
  printf("%lld\n", x + y);
  for (i = 1; i <= x + y; i++) {
    printf("%lld ", ans[i]);
  }
  printf("\n");
  return 0;
}
