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