#include <bits/stdc++.h>
int a[2005];
int n, k;
int main() {
  scanf("%d", &k);
  k += 2;
  int len = 0;
  a[len++] = -1;
  int res;
  while (k > 1000000) {
    k++;
    a[len++] = 1000000;
    k -= 1000000;
  }
  a[len++] = k;
  printf("%d\n", len);
  for (int i = 0; i < len; i++) printf("%d ", a[i]);
  return 0;
}
