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