#include <bits/stdc++.h>
int main() {
  int k, a, b;
  scanf("%d", &k);
  for (int i = k / 2000 + (k % 2000 > 0);; ++i) {
    b = i * 2000 - k;
    a = i - b;
    if (b <= 1e6 && a < 0 && a >= -1e6) break;
  }
  puts("2000");
  for (int i = 1; i <= 1998; ++i) printf("0 ");
  printf("%d %d\n", a, b);
  return 0;
}
